Avoid serializing GainData objects in YAML