Simplify static_eval, remove allocation restriction (#37209)
* Simplify static_eval.
Remove the sparam and allow_alloc parameters, which are enabled in all
uses of static_eval (which there are way fewer than there used to be).
* Remove static_alloc codegen param.