add missing properties of cp.SegmentShape and cp.PolyShape

#1048 
The message should be "SegmentShape assertion failed : n.x"