Added an implementation of Activator to instantiate classes when you only have a type.