cleanups around java.lang.Integer and sys.error