Refactor

it would be good to allow choosing between the output walker and the AST walker too, given that Doctrine has 2 ways to paginate, and the most efficient one depends on your DB platform and on your query (some queries can only be paginated by one of them). Doctrine chooses one based on the query support, but in case both are supported, it may be useful to force the choice to improve perf