Dot product should be returning a scalar type