libembroidery copyStitchListToPolylines() bugfix.
casting fixes.