Fix factory-halt connection tracking, and (part of) walking distances to factories; fix logic-reversal bug in freight coverage