Ensure uniqueness of event types in type-ordering.  Closes #3300.