AI-generated enhancements and examples for StaticCompiler.jl

The points here are just to upgrade to Julia 1.12.

The overall set of points is larger but I get the idea.

The PR took me about a work week of monitoring AI and steering it in the right direction. It wasn’t a full work week as AI would go off and work on its own for anywhere from a few minutes to an hour or two. I was switching between different terminal windows with different projects during that time.