add diagnostic function `checkIntegrity`
`ablate`: fix collapsing nodes