Added method 'getCopy' to type 'Set' + unittest.

Signed-off-by: Phillipp Ohl <phillippohl@gmail.com>