Support creating shapes with points like [[x1,y1],[x2,y2]].