Provide a better error message for hash merging errors.

It would previously give you some sort of type or attribute exception.