JIT: added BoolArray class to use less memory for bool arrays