Fix hold_any serialization