Not tested, but should be easy to add a couple of lines here:
%array_functions(bool, BArray); %array_class(bool, BArrayClass);