Simplify function exports logic in Init()
Add a couple more test cases.
Move back to region-based object refs temporarily while I try to figure out
how to implement trait refs.
Implement obj refs and trait refs.