Refactor diag of unresolved syms; also diagnose in getAddressOfGlobal().