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
Sure. Note that for large test results, `ORDER BY` +  startsWith is more efficient, since the test can be terminated before the whole results are streamed back.