CustomDOMElements: incorporate watchDOM optimizations and url attribute path fixup in nested templates. Merging these recent changes from polyfills repo.