extended class type check functions

- class_type now fully extends type, returning class_type for classes
and base type for simple types
- implements(a,t) return bool if a is a class and implements t
texture _getRect promoted to getRect
comments