Add isKindOfClass test
Do not use objc_duplicateClass()

Use objc_allocateClassPair() / objc_registerClassPair() instead. Documentation says "Do not call this function yourself" and Greg Parker advised me against it: "I wouldn't use objc_duplicateClass for anything." [http://twitter.com/gparker/status/375304769662763008]