Remove requirement that Trigger and State subclass Enum.

Any class that properly implements equals and hashCode will work.