Nikolay Sivov : dwrite: Fix array indexing when merging features.