events: type check setMaxListeners, n must be a positive integer

setMaxListeners will now make sure a positive integer is passed and reduce a logic operator. Also
throwing more definitive Error types.