fix #17: add offset argument to int2bytes methods