(add_dependency): Only increment reference counter of the object