Simplified bytecode codec, fixed instanceof.
Simplified bytecode codec a bit.