more code cleanups of SharedPtr<> code