Prevent indefinite repair of non-indexed objects

Even in the case of a non-indexed bucket the object must be read in
order to build the correct hash for the hashtree.

Add a test to verify indefinite repair is not occurring.

Add a utility function in `yz_rt` to count the number of calls to a
function.