Added a Resolve<T>(object[] parameters) method, which accepts the constructor parameters