add global vars, needed for testing
dispatch to P% infixes in cmp()
make tr/// return the number of matches and undef return Any rather than Nil

The lower number of passing tests in pack.v5 might have been false positives.