Fixes confusing argument errors for task decorator.  Closes #1692