Automation Templates: save entire automation

When saving an automation as a template we need it to save the entire automation just as it is created, including all fields and selections.