Clean up hashing.

- rename array_to_hash to hash_to_int
- switch to md5, truncated to 32 bits for integer lsh. This should
  provide a better key distribution, and is slightly faster.
Add test for hash_to_int.
Mention bias in test_integer_hash.