Ensure template is decorated before stamping shadowRoot, fixes #700