Avoid is_subclass_of

Kind of fixes #297