Fixed LineSegment preprocessor, added eval_prog for values