TemplateRegistry map should pass the array via set to make the file insi...

...de a closure. Else Fatal error:  Call to a member function bindTo() on a non-object