Resolve owner type in type variable lookups

Attempting to resolve #81. No tests committed currently as the test case
described in the bug creates a number of new files that cannot be
embedded in <code>TypeResolverTest</code> (as is the style precedence).