is_boolean method to test if string represents a known boolean value; more compact comparison code
Support for DATA and BOOLEAN nodes; more tests