glsl: In ir_set_program_inouts, handle indexing outside array/matrix bounds.