[CouchDB] Fix serialization