[linker] Resolve every type references if we're to save an assembly that is not linked (so the scope won't point to assemblies that were removed)