Unreal like C++ object serialization