Implement node() as a type test, not a function.
Renamed node_type to type_test.