Fixed generated code working with GArray

Code was using signed int but when looping through GArray
unsigned int should be used because array->len is unsigned.
This caused a lot of compilation warnings when libxr was used.