dojo/Deferred tests

4 testcases fail in dojo/Deferred testcases(for the same reason), and there is 1 incorect jshint failure. I marked them with FAIL in comments.