Fixes a variant of the issue in #123 which wasn't fixed by that PR and came up in #168. (Plus another couple minor things I improved along the way.)
This bug was enabled by the fact that it's still possible to import a Scenic module from a Python module if that Python module was imported during the compilation of a Scenic module. Completely banning imports of Scenic modules from Python seems to be nontrivial, so I'll save that for another PR.
Fixes a variant of the issue in #123 which wasn't fixed by that PR and came up in #168. (Plus another couple minor things I improved along the way.)
This bug was enabled by the fact that it's still possible to import a Scenic module from a Python module if that Python module was imported during the compilation of a Scenic module. Completely banning imports of Scenic modules from Python seems to be nontrivial, so I'll save that for another PR.