Implement dumping boolean values

Boolean values are always dumped as "True"/"False", following the Python
convention. This commit adds test cases involving dumping of booleans as
well.