Changed the tests for lists to instead be tests for iterable and the JSONArray to accept Iterable. Allows things like sets to be used directly

There is obviously no change in the reverse direction, as JSON cannot represent a Set directly. This is strictly for the convenience
 of the person building objects to send