glsl: copy the how_declared field when converting to nir