rb_clear_cache_globally() should be called in rb_clear_cache_by_class() (and similar functions).
I recoomend that ver up vm_version simply.