fix($compile) support templates with table content root nodes

Some hack-ish logic to get compile to avoid throwing up on table content as root nodes.

I'm sure this can be improved upon, and certain things (like the regexp) could be moved outside of the function. Suggestions would be good.

[demo1](http://plnkr.co/edit/lElPZH9qlOemGE8vpteH?p=preview) | [demo2](http://plnkr.co/edit/9rg68DVp0w5kfc727mCj?p=preview)

Closes #2848
Closes #1459 
Closes #3647 
Closes #3241