Multi eventset

Add support for EventSets containing multiple compatible events. Reduces size of critical sections. Fixes some case sensitivity issues.