Add the option to uncheck ancestors when all their descendants are unchecked

This change adds an additional option to the onUnchecked config to uncheck an ancestor if all of its children are unchecked.