Updated EventDispatcher, added related unit tests

Backported the last version of sigma.js' EventDispatcher class, with the related unit tests.
release v1.3.6

Updated EventDispatcher, added related unit tests