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

I'm not sure about 'inline' annotation for 'sum' function. What is the policy about 'inline' annotation for functions from stdlib?