Fix handling of unlimited dimension in writeDimension().
Fix handling of unlimited dimension in writeDimension().

Unidata/netcdf-java,Unidata/netcdf-java,Unidata/netcdf-java,Unidata/netcdf-java,Unidata/netcdf-java,Unidata/netcdf-java,Unidata/netcdf-java