Get web-platform-tests dispatchEvent passing, or at least failing informatively

After seeing #893, I tried adding

```js
w3cTest("dom/events/EventTarget-dispatchEvent.html");
```

to `test/w3c/index.js` but it failed with very unhelpful error messages.