Class to_s

Add to_s support for anonymous classes and modules.

In the process refactor places that use a string representation of a class to call to_s on it.