Improve the RubyHash implementation