Add test that demonstrates the problem.
A Limit node might be unlimited.
merge MMcM: Fix check when computing maximum number of rows needed for Limit.

Merge pull request #1156 from MMcM/sql-layer/sort-limit-unlimited
https://github.com/FoundationDB/sql-layer/pull/1156