Added serialization functions for size_t