Fixes for unsigned integers reading/writing from/to file