Backend for an OO dictionary in Ruby