Added ToArrayWithWeight to PathSegment.