Allow tuplesort_get* functions to take NULL pointer params to advance the
result without actually returning a value.
Merge remote-tracking branch 'df/within_group' into within_group