Add support for serialization to OFList.