EventDispatcher: IllegalArgumentException after one of event listeners is GCed

Fixed equals & hashCode in ListenerReference, added unit tests

Issue: #4
Merge pull request #5 from akochurov/master

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