Must check rule transition follow states before eliminating states in the ATN

This fixes #224