BUG: Changes types used in packing structs

Types used for integer conversion where always half the size they should be.  
Produced a bug when exporting data tables with long integer data (np.int64).