fixed bug where we tried to iterate over null if event was sent and nobody was listening. also fixed components_wanted in System to be Set<Type>