toArray now returns a _unique_ array.
Tests.