If I try to call `to_json()` on a Signal object, I get the following error: ``` TypeError: Object of type SignalSystem is not JSON serializable ``` This seems to be because the JSON library does not know how to serialize enums if they do not inherit from `str` or `int`.