[DDC-1985] Fix ordering preservation in SQL limit subquery output walker.
Merge pull request #939 from doctrine/DDC-1985

[DDC-2939] Order Preservation