return Any array for map on empty arrays. fixes #3349