Support booleans

Fixes #3
Merge pull request #4 from wongpat/master

Support booleans