C++ serialization lite