Serialize and deserialize all types, not just BLOBs