Fixed TestIOUtils.TestSuppressedExceptions

Rewrote the tests and some of the tested code to work around C# not
having Java's Exception.addSuppressed.