Added support for boolean primitives and boolean objects