Add option serialization and comparison