expr() simplifies x^0 and x^1 too much

Fix #44482

Auditors: alpert