Added support for NSSets of model objects. This works by converting the NSSet to an array on input and writing them in an arbitrary order into an array on output to JSON.