@SuppressWarnings({ "rawtypes", "unchecked" })
    private List arrayToList(Object array) {
        int length = Array.getLength(array);
        List list = new ArrayList();
        for (int i = 0; i<length; ++i)
            list.add(Array.get(array, i));
        return list;
    }
Creates a detailed representation of a query tree.

@author Tony Vaagenes
container-search/src/main/java/com/yahoo/prelude/query/textualrepresentation/TextualQueryRepresentation.java