[jh] Trying to sort out problems with GROUP SUM - not quite there yet.
Checkpointing code.
[jh] various GROUP SUM changes
[jh] test - where is it going
[jh] further changes to group sum
[jh] mmmmmm is it OK now