Fixed support for bool primitives.
Fixed references on unary operators.