Improve formatting of generated ML

Various minor changes:
* Use short aliases for module names (36aff92, a039e85)
* Improve indentation for `external` bindings (6b433e5)
* Don't fully qualify all record fields (5f16560)