Iterate the whole depends array, in the unlikely event that pre_depends_count!=0