Added support for PolyLineZ and PolyLineM