Custom boolean values

This is a pull request for issue #78.  Going to add a few more fixes to it, in addition to @lmctv.