Made event sequence test aggregate a list of events.

The test for a sequence of events now aggregates a list of events emitted instead of having a single index. The reason for this change was that previously, each event handler had wrongly stored its own index value, whereas we wanted the count of events emitted to reflect all event types.  Now, all event handlers store a reference to the same list.