Revert "Remove ineffective (and, on newer PHPs, erroring) call to array_unique"

This reverts commit d248c1db619d565e86b57de166d0525e2746fd0f.
(this doesn't make RSS feeds work, so I'm going to log it as an issue instead)