Fix ToQueryResult: now works with enumerable.AsQueryable()