Changes to speed up making ploys from large transition tables.

Probably should be improved more.