Fixed error when factory is an array [Fixes #7]

Error: class_exists() expects parameter 1 to be string, array given in Kdyby\Events\DI\EventsExtension::autowireEvents()