Allow Array.map.forEach to be applied to Strings and ArrayBuffers (for #310)