Simplify Registry.prototype.extensionsForType.
Merge pull request #2052 from rwjblue/fixup-extensions-for-type

Simplify Registry.prototype.extensionsForType.