Support iterating over objects in Promise.map

There's a bit of code repetition here, so there's probably a more succinct way of doing this.

Perhaps don't accept this until all collection methods (all, some, reduce, filter, race, any, settle) support iterating over objects. (If that is even something you want.)

I find myself frequently using lo-dash to map object collections just to return an array to use with Promise.map.