Hardening and hysteresis in transformational plasticity