I thought perhaps the issue was that version 2.2 made an important change in how compound objects work, but running your program "trying" with version 2.1 didn't seem to make any difference. Since your two programs are very different from each other, I'm unable to offer useful advice. All I can say is that two very different programs are likely to behave in very different ways.
------------------------------------------
Here is a brief description of the change in compound (and extrusion) when changing from 2.1 to 2.2: Improved extrusion and compound objects. They now have pos at their centers and size that represents the bounding box. The extrusion path is now specified by "path", making it possible to specify "pos" as the location of the center of the extrusion's bounding box.