The effects of velocities and lensing on moments of the Hubble diagram