add support for types_hash_max_size