[SPARK-3800][SQL] Clean aliases from grouping expressions