gi: support freeing array return type everything