Fixing aggregations containing stats with multiple sets of groups.