Merge pull request #5 from willbryant/master

Small error-reporting fix
ruby 2.0 compatibility: tasks may not yet be an Array, so cast it