fix #21881: Add a check for loops in directional waterways Patch by gaben, slightly modified
validator.CycleDetector.directionalWaterways