Add SomePairs#to_h for compatbility with Ruby 2.0+