Allow instantiation of subclass wrappers with smart pointers.