Refs #18470; fixed archive_previous_version logging:

- Archive helper methods now return the affects objects useful in
  situations where we want to log which objects have been archived
- Correctly log the previous versions instead of the archived objects
  without duplicates when logging them