Added get/set method to Serializer to allow pointer passing without going through InputStream/OutputStream.