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

...encies

Fixes #189
Also mixing ```querySelector``` and ```getElementsByClassName``` is odd because the second one returns a live list.