Make arrayForEach provide the array index to the callback