(fix,ref) fixed JavaVM::operator= and made some refactorings