glsl: Streamline the built-in type handling code.