glsl: Add type predicate to check whether a type contains any opaque types.