The function partition_args partitions all arguments into two sets.
- source files
- linker inputs
Previously, only the source filename test was explicit, and a file that
didn't look like a source filename but containing a dot would be treated
as a linker input. This could result in confusing error messages (Trac #11247).
Now, we explictly test for object files instead, and treat everything
else as source files.