[relate] Add HandleOtherTag to turns::less_seg_dist_op<>, change TurnAnalyser concept.

HandleOtherTag can be used to define how should the seg_id of the other geometry be used in comparison.
TurnAnalyser now must have two versions of apply(). One is called for it != last and the other one for it == last.