HPCC-10149 More tests, and don't optimize KEEP(1),LIMIT(n)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>