semantic: Fix leading dot lookup
semantic: Remove unused lookup function
semantic: Fix parent class lookup
semantic: Refactor result ensuring lookup functions