made nicer error message when illegal datatypes encountered trying to write netcdf-3
fixed typo