Special case isinstance(x, MaskedArray) in ma.compressed().