Creates a *deep copy* of the activated template to prevent `transformData` modifying its data.