glsl: Demote 'type' from ir_instruction to ir_rvalue and ir_variable.