Make sure internal state keeps track of previous duplicates
Make sure internal state keeps track of previous duplicates

This way we don't have to do deep recursive checks when marking a
place as canonical

cultuurnet/udb3-php