Sebastien Loeb has won the Rally Argentina for a sixth time after making a superb comeback on the final day.