Replacing native array with GtArray