fix grouping with expression in key(s)

- remove spurious rewriting of the source in groupBy
- simplify expr3 with at least one literal argument
- pending test for a trickier case