A set of MarkLogic aggregate user defined functions in a native plugin for grouping values in a map.