glsl: Fold implementation of ir_dereference_array::constant_referenced into wrapper