Added test of Instruction.isExpressionCompatible before generating code
for primitive expressions in compilation logic.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>