This reverts commit 8eef7a4275. Previous commit was correct, duplicate keys should not appear here.
8eef7a4275