fix dynamic search in task actions

When dynamic search is on, "\n" were transformed in just "n" and broke mysql query.

fixes #2047
fix retChecks when processed by agents

Fusioninventory agents are looking for 'values' in retChecks when doing checks on action's returned
output and codes.

I've also done a slight modification on how retChecks are presented in interface to be consistent
with edit form.

fixes #2046