Make pathfinding try to respect dynamic state; resolves #63 and #64