Reuse old arrays for empty!(::Dict). Closes #8558

Backport of 9a273ff