In @forindexes, generate a variable for each dimension of indexes tuples

This reduces the number of dereferences, and might work better
with tuple-type function arguments