CGE2: Fix several signed/unsigned comparisons