Modified templater.set to allow for input lists.

I'm contributing back the changes I made based on the functionality I requested in #258.