1. Implement nubBy() and use it to implement nub() itself.
2. Correct some other mistakes in the signatures of the List interface.