Why would the W-2 be affected? He should get a 1099-R from the Plan for the refund.
Any reasonable method to determine earnings can be used. I believe we assume deferrals ratebly over the year and apply the annual earnings rate for 1/2 the year if that makes sense.