semantic: Add isOrInheritsFrom function.
semantic: Rewrite type lookups in class functions.
semantic: Rewrite super postfix expressions.