Added a shim for Array.map.