Improve parsing of boolean values

This commit implements checking the whole "False" / "True" tokens, and fixes
parsing errors when newlines do not follow boolean values. It also adds test
cases involving boolen values.