small type conversion fix in codegen_ebml