free result after getting state
Add reference count model for manifest_test

(manifest_new_test_from_test): Added
(manifest_testsuite_run_suite): Take copy of test into result seqs
(rasqal_query_results_sort): Takes just result arg