updateImportedSymbols

This function updates the ImportDeclaration.importedSymbols. This is done once at the beginning by the ImportResolver. However, we need to update this list once we infer new symbols in namespaces that are imported at a later stage (e.g., in the TypeResolver), otherwise they won't be visible to the later passes.