events: implement EventEmitter#getMaxListeners()

fixes https://github.com/joyent/node/issues/8237
This should probably check that `this._maxListeners` is a (natural?) number, not merely undefined.