Are you sure this avoids the bug? As I see it this will still cause an error, as if a different `key` is a `Symbol` the call to `sorted` will still fail, plus you're re-sorting the dictionary for each entry in the dictionary.