Fixed bad serialization in C++03 (pficommon #161)

https://github.com/pfi/pficommon/pull/161