Changing the hash function to handle empty dictionary better.