basis.template: use list for Template attaches instead of array