This makes it possible to know whether an argument is set from the
command line or the config file.
Behavior change: in case of multiple values for an argument, the
following rules apply:
- From the command line, GetArg returns the *last* value
- From the config file, GetArg return the *first* value
Partial backport of core PR11862 (commit 3673ca3)