1) Fix bug referencing static members from a subclass
2) Fix bug when creating Type for class with generic base class