More node snapping fixes.

Fixes for the red lines and some of the snapping conditions that were incorrect.