Bugfix: Don't show Ambiguous class resolution warning when not ambiguous

if an interface of class is defined multiple times in the same file (see the test fixture for a legitimate example) this should not produce an ambiguous class resolution warning because there is no ambiguity in which file should be loaded.