Preserve the region order when flushing a RegionSet

Related to limetext/lime#341.