Add support for deserializing InputStream and ByteBuffer