Fix SearchResult.of_type scope