minor SharedPtr<> cleanups