Const type is now adjusted correctly also when the target is java.lang.Character or java.lang.Integer