Simplified map

Simplified R.map using R.curry on function that:
1) Either applies list.map or
2) Calls Array.map onto it.