Add encode impls for Atom & Tuple.

These simply case Atoms to string and Tuples to list.