France has promoted Alfred Dreyfus to general, 130 years after he was wrongly convicted of treason in one of history's most famous cases of injustice.