[java] unit tests compiling; fixed captured function vars with type parameters
Merge branch 'development' of https://github.com/HaxeFoundation/haxe into development