this is what my scripttest PR was about.  not needing this.
before we added this explicitly, the assert_no_temp stuff wasn't working (actually giving false positives)

maybe add a comment here that this is pretty critical until we fix scripttest. it's more than just ensuring.