Resolving should try local names before looking at imports

Close #197