fix(compiler, view): centralize TemplateElement checks and fix inconsist...

...encies

Fixes #189
This won't scale well, eventually we have to introduce ```templateAwareGetElementsByTagName``` etc. Why not add ```templateAwareRoot => DOM.isTemplate(el) ? el.content : el```, which would compose well with ```DOM.getElementsByClassName(DOM.templateAwareRoot(el))```?