More work on transcoder.

* Re-encapsulate data on EConv.LastError
* Fix bugs in insertOutput
* LastError.errorBytesEnd is actually errorBytesLength