glsl: Stop being clever with pointer arithmetic when fetching types.