Move ItemList->array logic into ItemList
Remove unused assignment