add support for non-stable hash() HASH_TYPE