Fix bug in more-than-6D SubArray indexing