gi: support array length