Possible fix for serialization of boolean values.