Improved listener class matching

Now the EventDispatcher receives the original class name instead of lowercased.