mesa: fix a GLSL array indexing codegen bug