Recursive handling of query selectors to use faster native implementations, when available.