Detection of iTask instance not working well

The compiler cannot correctly determine whether there exists and instance iTask for a given task argument type.