Prevent a node to be both a leaf and a composite node.