Issue #161: refactored Polyline into Polyline and PolylineProgram