Various fixes.

Implicitly import the current directory when not in the default package.
Rename Object.toString to Object.toJString
Fix for UDA ordering and tweaks for native file output.