EventDispatcher: IllegalArgumentException after one of event listeners is GCed

Fixed equals & hashCode in ListenerReference, added unit tests

Issue: #4