gi: support NULL as array's return value