Type check Rugged::Tree in Tree.diff