small fixes

avoid fatal error with C function is_class ^^, avoid fatal errors with
class name too much generic
Merge pull request #1 from TweetPressFr/master

Bugfix - avoid fatal error with C function is_class - avoid fatal errors with
class name too much generic