Allow map to accept an object instead of array.
0.0.8