SimpleStatement code generation. works towards #36