Add #group and #groupBy functions.