Extended support for error building in compiler.
Added error building in compilation logic for primitive expressions
where the opcode check for compatibility with expressions.

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