Fixed the List.distinct function so it works as expected (it wasn't actually processing the input list).