Support Polymer DOM + module loaders combo

Fixes #446.