EventDispatcher: IllegalArgumentException after one of event listeners i...

...s GCed

Fixed equals & hashCode in ListenerReference, added unit tests

Issue: #4