avformat/matroskadec: Improve check for level 1 duplicates