Deduplicate init entries with different priorities by choosing the entry...

... with the highest priority

This can happen in certain obscure cases -- see the comment for more info.