fn serialize_delegation_type( d: &DelegationType, bb: ByteBuilder<DelegationType> ) -> ByteBuilder<DelegationType>