Add support for logical/bool matrices