Added unit test for Array#diff() and an example in the documentation.