FAIMS-757 Make objects serializable so they can be saved and restored