fix `hash-clear!' on impersonated hash tables

Closes PR 13977