Use IList instead of List where we can

In some cases, we use List#ToArray and List#Sort, which are
not provided by IList. Those were not updated.