NcToArray: Bug when expect_all_indices = TRUE and extra dimensions of length 1.
"Error in permutation of wrong length" when expect_all_indices = TRUE and there are extra dimensions of length 1 in the file.