adding support for coercing booleans (issue #81)