Another fix for objects with "handleEvent"
Preserve order of disabled event listeners
small restructuring
Detect delegating event handlers