Add arena save/restore around use of hash KEY.

I believe this will fix issue #1306. The KEY() call dups when a String is used as a key arena keeps growing until it overflows.