[ELF] Fix the bug -- LLD crashes if the --whole-archive option
is around non-archive.
[ELF] Fix typo in the type name of the range-based loop item.

No functional changes.
[ReaderWriter] Simplify initialization of class fields.

No functional changes.