Conditions in Term#valid_datatype? rewritten to test explicity for boolean classes.

Fixes #39

Note that I had to remove the delegation of :send to :result.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.