Iterable isntead of List

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