Nikolay Sivov : dwrite: Implement ranges merging.