BUG/PERF: perf issues in object groupby aggregations (GH7555)