bisected to r43194:

    * array.c (rb_ary_uniq): use rb_hash_keys().

    * internal.h: define rb_hash_keys() as internal API.

    * hash.c (rb_hash_keys): ditto.