fix non-pointer uintptr -> uint64, export NextUID

Allows other iterator implementations to use global UID namespace.
Merge pull request #85 from pbnjay/global_uids

fix non-pointer uintptr -> uint64, export NextUID