add serialization operators to cxxtools::Timespan