Fixing problem with generation of the apply expression to Java
Type of root was incorrectly set for the apply expression calling a codgen runtime utility function
Type of root for the instance call was incorrectly set