Fix dependent_objects support for multiple dependencies