Fixed boolean values serialization.