Added NumpyMaskedArrayCoder support and explicit type check.