Add inner and norm methods to Dats

Only l2 inner product implemented for now.
Add Dat.sum
Fix format arguments for _check_shape