Implement isctype and lookup_classname in regex_traits.