Make sure we have codegen before invoking Class_Version().
Actually check for kInThisScope.