Fix bug 10275 CTFE: allow const casts of struct literals

This was permitted in const-folding, but not in CTFE until now.
Do all interpreting inside CTFE

instead of in the optimizer