Fixed bug where hash was being filled with Strings and Symbols.
Added more info to the error message to for debugging.