Try again at fixing `get-field` for typed classes

This time `resolve` is called for the class type
instead of the object type as a whole.
Refactor `get-field` typechecking