Added protection for dimension being too big for array of dims found in
nexus.