Fixing a pair of bugs.

1. JavaImp was always leaving the temporary buffer during
JavaImpGenerate().

2. JavaImp was sometimes leaving JavaImp.txt loaded after
JavaImpGenerate(), then was later complaining that it was loaded in a
buffer when write!ing to JavaImp.txt.