Make it possible to track items in iterables in custom ways (e.g. by ID or index), rather than simply by identity. Closes #6779
Make it possible to track items in iterables in custom ways (e.g. by ID or index), rather than simply by identity. Closes #6779