Changes to CreateJointWithNestedPoly, to modify the names of created objcets