new helpers with task_data, minimal changes for compatibility with it
use task_data for scalars in merged tasks