document.hpp: make document::range_type a cainteoir::range

The std::pair<> type does not have overloads to support C++11
range-based for loops, but cainteoir::range does.