fixed bytecode type serialization