Do correct checks for shared_ptr types
Do correct checks for shared_ptr types