glsl: Treat ir_dereference_array of non-var as a constant for lowering