The dynamic parameter expects a string rather than an array. You can add variables to your 'inline text' either individually, e.g.
... in which case you would specify 'parent__', 'base_template__' etc as individual dynamic parameters,
or as a concatenated string, e.g.
... which you would build by concatenating '<string>', label, '</string>', '<string>', value, '</string>', and so on, instead of building an array. In this case you should probably set the type of the dynamic parameter to 'XML fragment' rather than 'string'.
Hope that helps.
Regards,
James