Lookup improvement

Better symbols lookup.
Instead of generating ambiguity we choose the nearest symbol.

Currently works only with types and members.
Support for methods will be added later.