Added fix because some GDA code calls setROI(..) with roi type
PolylineROI. Since this used to be legal, we still support it for
backwards compatibility reasons.