Corrected data types used for temporary buffers in .inl files for scan routines and removed some warnings for 32 bit

Corrected data types used for temporary buffers in .inl files for scan routines and removed some warnings for 32 bit