Make _.uniq work with sorted = true and an iteratee

Fixes #1866
I wonder if it'd be faster to use this switch or just default to `_.identity`