Fix serializing of signed numbers in serializeStructToString