Retirement tax questions

It should be both.  That's what code G says on the back of the W2.

G—Elective deferrals and employer contributions (including nonelective deferrals) to a section 457(b) deferred compensation plan

It doesn't affect your tax return.