Added support for three operand in compilation logic of primitive
bodies.

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