Couchdb doesn't recognise 1/0 as bool values, so even though I'm normalising string booleans to bools, I'm later having to cast all bools back to string booleans.