Speed up transition models with linked tables

Biggest speed improvement was specifying explicit copying of
new linked table rows so that pandas didn't do any
"are you assigning to a copy?" checks. More speedups were achieved
by using a groupby on the linked table rows that needed copying to
cut down on filtering done. Overall speedup is more than 10x.