i think you should already have this in the keys: http://twig.sensiolabs.org/doc/tags/for.html#iterating-over-keys-and-values (though the code is doing some weird stuff with uuid as well, not sure why)

if we inject anything more, i would propose to inject the node rather than the path. that gives the biggest flexibility. or, as we load the node anyways, i don't know why we do not create the document and inject that, while we are at it.