GRIM/EMI: Pathfinding fixes

This fixes the bridge height check as described in #842, and also several additional issues that popped up after the height check was fixed (see the discussion in #842). Overall the paths are closer to optimal with less zig-zagging.

c8579b4 fixes Elaine walking through Guybrush at the end of the first cutscene in set gme.