Fixes ArrayToList

Thanks to James Moberg for finding this bug and also for suggesting the
solution! #opensourceftw