Try to fix each error only once

Fixes issue #334.
Now when several messages are reported on one line and the user uses `M-t`, duplicates are removed from the set of errors, so that only one fix is applied.