Make NameResolver resolve trait alias and precedence names