Support array as first argument of map()