add tests for griddata i/o, fix bug in write_griddata_ascii