For now, we use the nearest-edge to nearest-edge distance for min-range checks (following much discussion on D981).
I appear to have missed that when committing it in rP22345 though, so actually do it this time.
I believe this is the source of the "units won't leave foundations" issue, together with D1969, which I can't reproduce with this change.
Grepped for completeness using isin(target|point)range and found no missing match.