Use #to_h instead of #to_hash

Since ruby 2 establishes #to_h as the default "gimme a Hash" method, use that.

(Still support #to_hash as an alias)