T. Buskirk: Fixed the List type check so that a failure to find the appropriate key value would not fall out to the JSONArray check and cause a class cast exception.