Fixed _index_to_arrays to handle cases such as b[[1, 3]] and for the
row vector special case.