Emitting change events and making the array the emitter
Automatically rewritten for npm.