Added support for ranges between element and text nodes when generating range CFIs.

And unit tests.