Range constructors should take a Document&.