Use the size of sbuf when doing rquery.
Fix cudf output.
Fix solver issues with cudf and digests.
Make CUDF output valid according to the spec.