Make NameResolver resolve trait alias and precedence names

This PR implements name resolving for alias / precedence definitions for trait adaption.

Sidenote:
The insteadof-property of  Stmt\TraitUseAdaptation\Precedence is an array. Since I couldn't find any (valid) syntactical construct that would result in more than one item, i hard coded the index 0.