This MR conditionally enables front(), back() and element() for treepaths with "enough" elements to be meaningful.
front()
back()
element()