Add unresolution for NameImports.
Improve reference resolution logging.