I would use the add() method instead.
cv41 is to be a child of cv31, so:

cv41 = cv31->add(orion::CompoundValueNode::Leaf, "cv41", "x1", ...);