Rename PolyLine -> PolyLineT, add more typedefs.

As discussed. I also added typdefs for the 3d versions, though I stumbled on why they aren't fully instantiated in the .cpp (contains algo only works on vec2, problem for another day).

Closes #608