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.
Use the new Ruby 1.9 hash syntax.<br>Line is too long. [124/80]