oai-pmh: refactor checking of repeatd arguments