Fixed typo causing failures for algorithms with task policy. Simplified return type handling by using async(sync, ...)