I'm guessing you're actually wanting to create() here instead of getting a singleton instance? 

Injector::inst()->createWithArgs('WorkflowTemplate', $struct['constructor']);