SERVER-13258 ensure S2 poly loops have 3 points after dedup'ing
(cherry picked from commit 16be7b9840df1df12421ed7ef009005c7d321ec7)