J2K: correct conversion of nested class references

 #KT-5294 Fixed
 #KT-5400 Fixed