Add discrete_mapping() transform

This will let someone map, say, 1 to f and 2 to m.

The syntax:
discrete_map("1":"f", "2":"m")

Anything values not in the map are replaced by
an empty string.

Closes #1.