Make Filter class serializable