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

Fixes #1866