Add option serialization and comparison

This is an artifact of how I first wrote the code. If you feel strongly enough, I'll change it. It seems fine to me.