Support N-dimensional array indexing