CachingGenerator: use jitescript's CodegenUtils
CachingGenerator: more uses of CodegenUtils