Add support for @parent and @root pseudo-key-paths

See issue #1327 for more details.