glsl: set error_emitted true if type not ok for assignment