Trac #9878: fix incorrect function in Hash.c

This commit fixes keysHashTable function.
Trac #9878: Fix StaticPointer situation in ghci

In ghci it's required to load compiled module in order to
populate static pointers table, see bug #9878.
In order to solve this issue we restict using static pointers
in ghci without -fobject-code. As a result in order to use
module with static pointers one should either run ghci with
-fobject-code flag or have compiled .o-file.