Mark intermediate nodes as pairtree elements

https://www.pivotaltracker.com/story/show/80769590