Added missing nested Sum optimization in F#.