[picoQL kernel] Debugged refactoring
so far. The generated code is identical to that prior refactoring.
Did not run runtime tests.