Fix generation of enum in client lib, saves field enum constants as int32 instead of int64.