Reason of reported behaviour by gameboy https://wildfiregames.com/forum/index.php?/topic/27384-strange-landing-on-the-island-and-unable-to-attack/ when units were trying to move "left and right" and they never reached destination was that they got command to move to the range exactly X units from some point/entity. What means minRange == maxRange. That case triggered computing goal when distance < minRange with result dist(goal, target) > maxRange, because minRange computation used clearance even when was treating target as circle.
Removing that is ok, because target is treated as circle only if is enough far away from moving entity, what is 3 times of obstruction of target.