Fix getArguments in Set class

Fixes #43 and adds tests.