Fix hash functions for keys whose size is not divisible by 4.