added jaggedLine test and fixed InvalidMiddle issues
We were detecting multiple places of a middle node's coordinate in a
line because I forgot to actually check that the x/y coordinate was the
same. I was just checking that it's other x/y coordinate was between
the two endpoints of the line.