add serialize for std::atomic