Finish up foldGroupBy