Fix Tests on 32bit Platform

- Change Int64->Int for general readtable() case
- Force rand to generate Int64 values due to an inconsistency in selecting
  random elements