gi: support C Array to Ruby