improve duplicate reference handling and use a maybe safer feedparser entry API