Fixed bug with EventDispatcher not working on non string values and fixed its tests.