use shared bundling output API

This shares the `System.get` / `System.register` methods.

The relocatable generated code test wasn't working for me from the start, so I can't verify if this is still working, but the output error is the same as when I started.

I'm pushing hard to get to this output format, but understand if it needs more work though.