Added support for hashes to Types.rb