cope with duplicate external_ids (bug 836797)
Merge pull request #73 from andymckay/external-id

cope with duplicate external_ids (bug 836797)