It would be good to have examples of the various (de)serialization functions that can also serve as test cases.