fixup UnnamedAttributeRef
flink: implement groupby best as I can

Some tests fail, no idea why.
flink: make tests actually compile java if env is set

also add groupby tests