Correct test to work with native HTMLImports.
Element creation steps refined for performance: bindings are now applied before shadowRoot is created.
Merge branch 'master' into reflect