New Object methods: fromPairs, toPairs, map, and flip.

Renamed methods (with slightly different semantics):
  map -> translate
  reverseMap -> reverseTranslation.