Add serialisation methods to Gender