fix generation of tasks, which use parameters from command line in the parameters file; issue 580; tests are added