Make it easer to override SystemMessage serialization. Fixes #2940

* Make SystemMessage extend Serializable to avoid ambiguity when
  setting serialization-bindings.
* Added tests for reference.conf's serialization settings.
* Make some existing serialization tests more robust.