Added map and foldl for regular java arrays.