compiler: ensure glsl types are not created without a reference