Add the function isPolyline() to determine if a path contains only polyline pritmitives.