fixing bug around Promise.resolve(..) incorrectly calling a promise's then() sync, closes #5