High-level ops and tests, close #118

This is a nice tidy up of ``sum`` and ``dot``, I think. Pretty good test coverage.