Add $tpl->setAll($set) and fix <option mode="add"> (and del) so they work again