Added List.collect.
Modified List constructor so it accepts a single argument that, when not a List or Array, is determined to be a comparator.