add is_logical_mask meta-function to deal with QPX-style logicals