glsl: fix array index deref type was being set to element type to early