fix an old bug: removing vertex when collapsing forest
fixed old bug in folding inps: TODO: check correctness of patch, minor corrections to whitehead graphs