Fixed a broken unit test for List.distinct -- the function preserves the order of the elements in the input sequence.
Fixed the implementations of the Seq.segmentBy and Seq.segmentWith functions and added some additional unit tests for them.