Allow for stringy hashes when deserializing
Fix wrong variable
Fix YAML hash parsing and 1.9 compatibility