Fix some cases of units getting stuck.
This fixes an off-by-one error that led to entities sometimes getting stuck against obstructions.
It also increases the max-range of the short pathfinder to help entities find their way around corridors and house blocks.
Fixes rP22609 (off-by-one error) and reverts the range changes from rP22526
Reported By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2754