events: implement EventEmitter#getMaxListeners()

fixes https://github.com/joyent/node/issues/8237
A note on style: the convention is to omit the braces for single-line statements.