add type check in Hash#merge!