Return a deep copy of retrieved templates

Closes #32