Fix typedef/bits code generation