fix to make tests pass
add type coercion for booleans. Fixes #139