Store Dict and std::string in shared_ptrs