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

If the first element in a template is an <option> or <optgroup> tag,
the compiler will wrap it with a <select> tag. This satisfies IE9.

Closes #6926