Handling streams separately in file-position since fseek doesn't
return the same value as lseek.  Fixes issue #220.
Fixing possible overflow in random bignums.
Fixes issue #222.