Add support for writing bytecode files with compactiontables for bytecode files.