For disjoint segments in a path there can be empty segments of length 0

For disjoint segments in a path there can be empty segments of length 0 as stated in method pathArrToSegs(). Those need to be ignored while converting back to Arr from Segs.