Add inner and norm methods to Dats

Only l2 inner product implemented for now.
Add Dat.sum
Fix format arguments for _check_shape
Add inline declaration to all created kernels