Improve the primary array selection using breadth-first search

Many JSON objects have the primary array some levels deep down the structure. The current algorithm only looks in the first level. This new one takes the first in a breadth-first search.

Some test data: https://gdata.youtube.com/feeds/api/videos?v=2&alt=jsonc