nir/lower_io_to_vector: fix per vertex io handling for arrays
The pass was processing the per vertex index from the wrong end of the array deref chain.
Fixes: bcd14756 ("nir/lower_io_to_vector: add flat mode")
Fixes the last piglit test in piglit!530 (merged)