Also use the glslang namespace qualifier consistently and validate after legalization, not before. (But most tests don't legalize.)