Added unit tests for ClassMirrors, and fixed several bugs.

equals, toString, and hashCode are now properly implemented
for all the *Mirrors.