Fix a bug where division and mod operators could have their operands reversed in the codegen