Ensure the domain events in the BookLibrary example are serializable.