Refactor shared load() method to BaseTest
Add regression test for #588
Fix optimizer incorrectly removing predicate transitions from the ATN (fixes #588)
Merge pull request #617 from sharwell/fix-588

Fix 588