[linker]: Also reference all type-references for LinkAction.Link and Save.
[runtime]Add a wrapper around signal handlers to ease porting work.
[linker]: Fix my previous commit.

We need to resolve all the TypeReferences before we update their scopes.
After setting the scope to null, calling Resolve() on a nested child would
crash.