Incorporating patch from Polymer to have custom elements and shadow dom work together.

BUG=
R=jmesserly@google.com

Review URL: https://codereview.appspot.com/14595044