Switch more streams from refs to atoms

In addition to favoring atoms in a few more places, this also switches the test bits to use atoms.
There should be more coming up.