Path refactoring: path + foo --> path[foo]

ref #235