Fixing use of $table->group_by in getSearchAllFields(), wasn't expecting
it to be an element ID rather than name, replace with called to
$this->getGroupBy().  Also added test for overriding limits in
setLimits().