Scheduler: Extended such that inner_prod(), norm_X() can deal with temporaries.

This enables operations such as inner_prod(x + y, x - y);