fixed more AST errors and added tests
added some documentation to TPath::Grammar
basic code for indices
beginning of definition of selectors
renamed TPath::IdSelector to TPath::Selector::Id
created Predicate role
added TPath::Test role for conditional predicates
implementations of logical tests
still more bits of the scaffolding partly in place