Removed most glob imports from CodegenRust.py

Fixes #1779. Most of them were able to be replaced without issue.