Small fix for eventbus

In the EventBus, a safety check is performed to make sure that the
correct listeners are being given the correct events. However, when
getting the types from the listener methods, I was getting the class of
the class that I was looking for, thus I would always get a
java.lang.Class object, which is obviously NOT an event object, thus
events would never reach the listeners.