Added EachWithIndex for multidimensional arrays