Fix non-string handling in map

This caused breakages under node 0.10