fix bug in scriptapi line_of_sight
fix warnings for pathfinder debug traces