first passing version of a merkle pruning cursor to gather up all prunes to be applied later; needs simplification