(add_dependency): Increment object of object and all dependencies.