cpp: valarray added, type_info improved; algorithm: kadane broken on conversion to iterator interface