for_each_*_object: move declarations to object-store.h