Let's not go too far with optimizations.
Fix issue in getPathData() with closed CompoundPaths.
Do not use pathData in JSON for CompoundPaths.