Composed tasks may lead to stack overflow
Currently (6eae4b37), composed profiles are executed by a recursive function, which may easily lead to stack overflows is a big number of subtasks is requested. This can easily happen with sequential tasks if one wants to repeat the sequence many times.
Solution: Do not use the call stack to implement this behavior, use a non-recursive function with a stack data structure instead.