Fixed incorrect type detection.
Ensure ShadowCSS are shimed only once per element. Fixes #22.