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.