Check getstate and setstate of incremental decoder.