Convert dictIterator to use 64 bit sizes

Also converts dict to use a 64-bit type instead
of a compiler-provided "long" size.

Also converts return type for retrieving a dict
key index (_dictKeyIndex) to 64 bits as well.

Attempt to fix issue #1814