Make scan word prim work with large ints