Add Distance function and tests. Fix behavior of Norm for zero-length slice.