Add exponential and modulo functions.

More change from to_datatype to ::datatype.

Reviewed-by: robert.macomber@socrata.com