Add failing test for limit/skip combo.
Fix bad skip/limit optimization.

We reorder Skip(5)/Limit(10) to Limit(15)/Skip(5), but a bug made it
Limit(15)/Skip(10).