Serialize non-scalars in cert_info when persisting