fix #2500 for timeline  (#2506)
fix #2500 for timeline  (#2506)

* Fix redraw order

* Fix error when option is not defined

* Allow template labels

* Fix boolean types bug

yotamberk/vis,Tooa/vis,yotamberk/vis,marcortw/vis,marcortw/vis,Tooa/vis