Issue #161: added optional translation to Polyline program, analogous to Polygon's