Resolve local variable types before method types
Set superclass type & fix static field codegen