Better comparisons for #5.
Merge pull request #12 from chrisvogt/fix_5_strictbool

Fix a couple comparisons