Fixed bug in list with array implementations

Fixed the list bug where not all of the list members would be printed
out.