[MAT-484] Add sum{rows,cols} java plumbing.

This adds the sum{rows,cols} nodes into the java side of OG-Maths
and adds in respective plumbing. It also adds the functions to
DOGMA as sum() and sum(foo, dimension), so that a dimension and
a default option are available.