Fix failing test and add more tests for first/last/take
with limit argument, fixes #322 and #323.
stopgap measure for squeel dsl where clause to work, until the good guys at globalize/globalize@cb834f1 can come up with something better