Adding check to see if rangy is being used as an interface, and using that if possible.
per https://github.com/openannotation/xpath-range/issues/4