Add ol.array.safeExtend
Use ol.array.safeExtend in ol.geom.LineString
Use ol.array.safeExtend in ol.geom.MultiLineString
Use ol.array.safeExtend in ol.geom.MultiPoint
Use ol.array.safeExtend in ol.geom.MultiPolygon
Use ol.array.safeExtend in ol.geom.Polygon
Use ol.array.safeExtend in ol.format.GML
Use ol.array.safeExtend in ol.format.KML
Merge pull request #1892 from twpayne/fix-stack-overflow

Fix stack overflow when handling very, very large numbers of coordinates
Take the feature's weight into account