Prefer #to_h over #to_hash

Ruby 2.0 adds #to_h as the standard "serialize this into a Hash" method in core/stdlib, so prefer this over #to_hash