Fix some code comments.
Fix bugs in AStar search for paths with checkpoints.

Several special cases for connection pins were incorrectly getting
applied to checkpoints during path search.