lisa.utils: Fix deduplicate()
lisa.utils: Fix deduplicate()

The current behavior does keep the occurence it's asked to keep, but
inserts them at the wrong position in the output.

credp/lisa,ARM-software/lisa,ARM-software/lisa,ARM-software/lisa,credp/lisa,credp/lisa,credp/lisa,ARM-software/lisa