Fix parameter signature of forEachDead and forEachExists