Retain references to Path objects

R=arv
BUG=

Review URL: https://codereview.appspot.com/13413044