[persistent-data/data-structures] add method to visit values and damage in a bitset