Set parent of Java inner class to outer class proxy. Fixes #1117.