update _type_hash.