Optimised functions to read and write int16/32/64 from strings and bigarrays