Fix Issue 1283

Fixed handling TMX polyline objects with only two points and switched
object vertices to be stored in local coordinates.

PolylineMapObject are now backed by the new Polyline class. By default
y-axis positions are flipped for environments where the y-axis
points up.