Distinguish internal AliasDeclarations for selective/renamed imports

Keep `AliasDeclaration::import` even after resolving forward refs.
Implement proper UFCS name look up
fix Issue 6185 - Include non-global functions when resolving UFCS