Added support for BOOL type.