nunaliit2-js: Better handling of clusters that wrap a polygon