fix usage of grouped cols in direct args of aggregates