Use HTMLShadowElement wrapper, fix Firefox test errors
Merge pull request #232 from azakus/wrapper-fixup

Wrapper fixup