Added support for JSONArray to be converted to Array of given type

Similar to last commit for List and Set collections but for an array of
given type T, i.e. returns T[]