Making RTree's find more efficient

By doing the type check before the intersection check, we can
save he intersection check for cases where we don't care about
type or have the specified type in a node.
Merge pull request #715 from ahocevar/rtree-performance

Making RTree's find more efficient. r=@bartvde