Added Order instances for many classes so that I could write a good Equal instance for Module, fixed Module round trip serialization, and cleaned up a few other things.