Add Array.groupBy and Map.mapValues operations