Fixed tree traversal not returning root + made tree traversal response contain unique objects