Correctly reconstitute instance comment path.

Fixed the reconstitute function to derive the correct instance path when
walking the DOM tree.

Also removed some unused `path` variables from the generation logic.
Merge branch `comment-instances` into `redux`.