Correct a few objects trying to dispatchEvents

Object.prototype no longer provides this functionality, it's moved
into Target.