Fixed bug in create_nc_variable with dimension ordering