add mrb_check_hash_type

Add *mrb_check_hash_type*. It is useful to write mrbgems.