Fixed a bug in creating train track maps.

The L-shaped region was handled incorrectly in certain case when the
foliation is cut along the transverse curve.