auto: fix bug in Seq(TP, _) case

i should have been j. Probably should use better names.
auto: expose link-free and link functions

Useful in general, but in particular for debugging and testing.