GEOT-4377 Fix for GeometryBuilder bug creating a closed coord sequence