Unit-tests for IO

1. Add randomized unit-tests for IO;
2. Increase precision for ASCII writers;