Remove non-functioning Dependencies implementation, and bug fixes.

- Update IO and Stream tests to separate reading and writing into
separate programs, as reading and writing from the same file is
not guaranteed to satisfy any order. Dependencies.scala was supposed
to be the fix for this, but it was not functioning correctly, and
fixing it was not straightforward.