Should add a test for masked arrays.