Add AbstractNode.fold and the utils module, with contains_missing function