flink: cleanup v_apply
flink: Override toString, but has no effect
rules: make code slightly cleaner
flink: cleanup code and fix groupby rule