Use emulated dispatchEvent for EventTarget.prototype.dispatchEvent

If the code calls dispatchEvent then we go straight to the emulated path. This is important because the node might not be connected to the node where we have listeners on in the native tree.

Fixes #327