Fix issue with WebIDL attributes on Range

registerWrapper needs an instance object to be able to pick up instance properties.

Fixes #301