Optimizes class type checking.
- Builds a inheritance map at Class.define type and uses that for type
  checking.