Rename `out` to `out_diagnostics` (#4341)

**What type of PR is this?**

Refactor

**What does this PR do? Why is it needed?**

Follow-up to #4269

**Which issues(s) does this PR fix?**

**Other notes for review**
5 files changed