[linker] Resolve types inside custom attributes since they might refer to types in...