Support booleans

Fixes #3