Fixed serialization of filter definitions.