GIRAPH-472: Refactor MapFunctions enum to be more general (ereisman)