Adds a scope to find branches

I needed a scope to find everything that's not a root and not a leaf, so here it is.

Thanks!

Dave