ENH: support for X and mask of type niim (like in MultiPCA)