fix missing roots for some boxed values in codegen (serious memory bug)