Minor zero cleanup

* removed $template->data[]=v & $template->set()
* removed unused global

Change-Id: I328651db295eec061d9c558dd1976ed4757dc3b9