send `this` to dispatchEvent callbacks

as requested in #434
Merge pull request #1295 from johndyer/dispatch-event-with-this

send `this` to dispatchEvent callbacks