Partial fix for a regression introduced when fixing a bug in the generation of entity internal functors when recompiling an entity with a changed `code_prefix` flag between compilations