glsl/lower_precision: split out const lowering