standard library: 'sum' function added (KT-3714, KT-3843, KT-3126)