Update _.uniq.

* _.uniq only supports arrays, use loop appropriately.
* Dispense with extra array creation.