New and improved data formatter for std::shared_ptr<> and std::weak_ptr<>