Discontinuities and hysteresis in quantized average consensus