added case for nested arrays discovery