MAINT: exclude masked arrays from linalg functions