Drop duplicate relation members in repair mode

This fixes an "endless loop" problem that could occur if a relation contained the same way multiple times. Sadly this does not seem to be the cause for #80 which therefore must remain open.