Added support for Sets, with unit tests.