layer: Added support for bool type layers.