Ensure tasks are an array. Fixes GH-115.