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

related #7555