Fixing various TP bugs for examples to go through TP Visitor