Add a utility to expand templates from one place in another place
Fix a bug when you make a template which has repeated copies of the same element in its body.