encoder: fixed streamSize and dictId setting