Support unkeyed generic_keyhash()