Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There is non trivial overlap of similar, but not quite the same features in GroupByScalar and ScalarValue
As discussed on #364 (comment) we think this is an historical artifact and the code would be simpler / have fewer bugs if they were combined.
Describe the solution you'd like
COmbine the two classes (into ScalarValue)