[generators] gen_airframe: don't force float if unit = code_unit