Expensive recursive factory method for "indexed elements".
Returns the same as apply(None, rootElem, path).
Returns the same as apply(docUriOption, rootElem, Path.Root).
Returns the same as apply(None, rootElem).