ENH: write_netcdf now deals with rank-0 arrays