Fixed AddLine method on LayerPrimitive.