Replace the use of the `LIB_TAG_DOIT` flag which cwas used to only process each object data ID once with a Set. Return the objects or bases in a Vector. Now we only iterate over the view layers bases once instead of three times. Pull Request: https://projects.blender.org/blender/blender/pulls/119788