C++: Fix hash table initialisation in map_to_hash_variant.