promote arrays in map -- fixes #6541