CodeGenerator: move native into placeholders and flush(), numWords size calculation for writeMethodDef()