Fix code generation for comparisons

Fixes (at least) Simon_114.mj