... by using MapVector. The issue was caused by 63182c2a. Also use stable_partition instead of partition to get stable results across different STL implementations.