[Task][ios] Add typename before using in RegularTask<R> and ThenTask<R>.