glsl: Let the constructor figure out the types of switch-related expressions.