Fixes loading a bin from an IO Plugin

Fixed the loading of a bin from an IO Plugin.  Some of the buffers were being unintentionally overwritten.  Also fixed initialization in the Java code.