For an unknown reason, I could not get the g_variant_new() call use "(@ays)" as format.
I had to find a workaround in the dlr_task_complete() function below.
If someone can help here...