Make Version class serializable