fix treeLocEqual
improve TreeLocArbitrary
fix TreeLocTest
Merge pull request #527 from xuwei-k/treeLocEqual

fix treeLocEqual and improve TreeLocArbitrary