add full element path as an argument to `map`

This fixes #36 as suggested by @dominictarr