csg: Add CAG.toDxfString() API, for use outside of web