The key can come from a frozen hash, in which case this will raise an exception. I believe it should have a `.dup`. I'll work on a repro for this, but in case someone else saw it, this is why.