Additional fixes for Converter.

* last_error implemented and mostly working
* primitive_errinfo implemented; mostly working but not 100% match
* More error cases handled and cleaned up buffer use a bit