restore two patches from https://github.com/Polymer/CustomElements/pull/59 that got dropped
Merge pull request #2 from dart-lang/fix_upgrade_tag_extensions

restore patches from https://github.com/Polymer/CustomElements/pull/59