5dd304c0f8
This is my attempt to clean up and simplify the logic in here a bit. It also fixes a bug that we were hitting in the region compiler: setting an element of a StaticStr may promote it to a CountedStr.