hash_equals is supposed to raise warnings on wrong type