Optimize ListValue creation - O(n) instead of O(n^2)

Map function on iterator already returns a list. toList doesn't create a new list or do any kind of fancy conversion.