Add support for root indexing

If the root element is a list, we should be able to
extract elements out of it.