tree: don't use a record for tree entry

Return the four elements directly