Preserve the region order when flushing a RegionSet

Related to limetext/lime#341.
Couldn't it just be a bool named for example `changed` which is set to false at the top of the loop and...