small fixes

avoid fatal error with C function is_class ^^, avoid fatal errors with
class name too much generic