Added envelope.toPolygon() method.