Allow for variance in netCDF4 behaviour.

A replacement for #1258.

@bjlittle - would you mind taking a quick look.
The mask value needs to be set - it comes from the default netCDF fill value. If you leave it to MaskedArray to choose it will pick 999999 which doesn't match the previous behaviour.