Fixed resolving pre-declared classes contained in namespaces when refenced in scopes with access to the full definition of the pre-declared class, but outside the class's namespace