numpy.ma fixes for netCDF4

Fixes #326, and I also think it'll fix #99 too (i'm testing that now).