BUG: np.ma.compress treated inputs in wrong order; closes #2495