Fix serialization of boolean type
Merge pull request #1 from leemars/master

Fix seralization of boolean type