fixed minor bug in get_nc_variable_dimensions