Serialization support for pidbox