Correct bug in jQuery.fn.closest

According to the jQuery documentation, the `closest` method should
operate on each element in the collection, and the result should not
contain duplicate elements.

This patch also ensures that the method always returns a valid Cheerio
object.
Merge pull request #228 from jugglinmike/closest-bug

Correct bug in jQuery.fn.closest