Fix: overloading addCommand

In DefaultTaskDecomposer addCommand was used :
- in decomposer with int params
- in direct to add a command with parent method (string+dict param)