asn1_erl_nif: Correct broken length encoding
asn1_erl_nif: Correct broken length encoding

The ber_bin_v2 backend calls a NIF function to decode all tags
and lengths. Even open types that should not be decoded will also be
decoded, which makes it necessary to later re-encode the data using
a NIF function.

The NIF function incorrectly encoded lengths.

klarna/otp,VincentHHL/otp,ferd/otp,stolen/otp,release-project/otp,RoadRunnr/otp,mujiatong/otp,cnbin/otp,aboroska/otp,gjaldon/otp,ahmedshafeeq/otp,jj1bdx/otp,platinumthinker/otp,vladdu/otp,haguenau/otp,kvakvs/otp,lianghaivv/otp,cobusc/otp,yangchengjian/otp,legoscia/otp,psyeugenic/otp,RJ/otp,riverrun/otp,dgud/otp,aboroska/otp,isvilen/otp,c-rack/otp,rlipscombe/otp,falkevik/otp,kvakvs/otp,cnbin/otp,stolen/otp,uabboli/otp,lemenkov/otp,jj1bdx/otp,RoadRunnr/otp,legoscia/otp,emacsmirror/erlang,Teino1978-Corp/erlang-otp,jemsbhai/otp,RJ/otp,paladim/otp,c-rack/otp,ferd/otp,matwey/otp,klarna/otp,matwey/otp,jinshana/otp,jamesruan/otp,msantos/otp,dgud/otp,marquisthunder/otp,NOMORECOFFEE/otp,lemenkov/otp,paladim/otp,uabboli/otp,stolen/otp,neeraj9/otp,awetzel/otp,GinjaNinja32/otp,vic/otp,isvilen/otp,johanclaesson/otp,yangchengjian/otp,riverrun/otp,falkevik/otp,jj1bdx/otp,vic/otp,enikki/otp,aboroska/otp,lightcyphers/otp,RichMorin/otp,palas/otp,GinjaNinja32/otp,vinoski/otp,paulcager/otp,uabboli/otp,c-rack/otp,release-project/otp,emile/otp,palas/otp,paulcager/otp,bjorng/otp,lucafavatella/otp,lightcyphers/otp,riverrun/otp,Teino1978-Corp/erlang-otp,fenollp/otp,vinoski/otp,ahmedshafeeq/otp,legoscia/otp,paulcager/otp,release-project/otp,erlang/otp,goertzenator/otp,emacsmirror/erlang,falkevik/otp,massemanet/otp,GinjaNinja32/otp,basho/otp,lucafavatella/otp,mikpe/otp,awetzel/otp,sdebnath/otp,bjorng/otp,goertzenator/otp,RJ/otp,hairyhum/otp,rlipscombe/otp,g-andrade/otp,vladdu/otp,lrascao/otp,theom/otp,ader1990/otp,vinoski/otp,mikpe/otp,lucafavatella/otp,lantti/otp,massemanet/otp,erlang/otp,uabboli/otp,schlagert/otp,goertzenator/otp,isvilen/otp,riverrun/otp,klarna/otp,potatosalad/otp,awetzel/otp,basho/otp,Teino1978-Corp/otp,jinshana/otp,jamesruan/otp,marquisthunder/otp,lianghaivv/otp,RGafiyatullin/otp,lemenkov/otp,ferd/otp,release-project/otp,vic/otp,matwey/otp,schlagert/otp,matwey/otp,VincentHHL/otp,isvilen/otp,ahmedshafeeq/otp,entropiae/otp,benoitc/otp-1,legoscia/otp,sitexa/otp,platinumthinker/otp,basho/otp,falkevik/otp,legoscia/otp,cobusc/otp,potatosalad/otp,hairyhum/otp,yangchengjian/otp,RoadRunnr/otp,sitexa/otp,GinjaNinja32/otp,sitexa/otp,emile/otp,weisslj/otp,RichMorin/otp,dumbbell/otp,riverrun/otp,potatosalad/otp,jj1bdx/otp,neeraj9/otp,tuncer/otp,johanclaesson/otp,RaimoNiskanen/otp,erlang/otp,jj1bdx/otp,kvakvs/otp,lantti/otp,saleyn/otp,cnbin/otp,ahmedshafeeq/otp,ferd/otp,derek121/otp,bsmr-erlang/otp,cnbin/otp,msantos/otp,palas/otp,NOMORECOFFEE/otp,bugs-erlang-org/otp,johanclaesson/otp,potatosalad/otp,getong/otp,ferd/otp,emile/otp,ferd/otp,mujiatong/otp,potatosalad/otp,emacsmirror/erlang,jamesruan/otp,neeraj9/otp,entropiae/otp,bjorng/otp,saleyn/otp,entropiae/otp,msantos/otp,gjaldon/otp,dumbbell/otp,lhslll/otp,emile/otp,sammoth-wazoku/otp,jemsbhai/otp,legoscia/otp,dgud/otp,stolen/otp,jamesruan/otp,goertzenator/otp,emile/otp,sdebnath/otp,RaimoNiskanen/otp,weisslj/otp,mujiatong/otp,saleyn/otp,fenollp/otp,bernardd/otp,lianghaivv/otp,massemanet/otp,sdebnath/otp,goertzenator/otp,benoitc/otp-1,rlipscombe/otp,lrascao/otp,beni55/otp,fenollp/otp,sdebnath/otp,Teino1978-Corp/otp,ferd/otp,vladdu/otp,psyeugenic/otp,rlipscombe/otp,stolen/otp,platinumthinker/otp,emacsmirror/erlang,Teino1978-Corp/erlang-otp,ader1990/otp,saleyn/otp,tuncer/otp,klarna/otp,marquisthunder/otp,lhslll/otp,goertzenator/otp,lianghaivv/otp,kvakvs/otp,aboroska/otp,lhslll/otp,krishnakumar4a4/otp,RoadRunnr/otp,falkevik/otp,aboroska/otp,msantos/otp,vic/otp,awetzel/otp,johanclaesson/otp,legoscia/otp,bernardd/otp,theom/otp,dgud/otp,beni55/otp,msantos/otp,ader1990/otp,jemsbhai/otp,jinshana/otp,enikki/otp,ader1990/otp,RoadRunnr/otp,saleyn/otp,emacsmirror/erlang,g-andrade/otp,RichMorin/otp,getong/otp,mikpe/otp,jemsbhai/otp,kvakvs/otp,falkevik/otp,getong/otp,benoitc/otp-1,Teino1978-Corp/erlang-otp,vinoski/otp,krishnakumar4a4/otp,RGafiyatullin/otp,matwey/otp,dumbbell/otp,rlipscombe/otp,emacsmirror/erlang,tuncer/otp,erlang/otp,lucafavatella/otp,johanclaesson/otp,neeraj9/otp,riverrun/otp,Teino1978-Corp/otp,matwey/otp,erlang/otp,RichMorin/otp,bjorng/otp,bernardd/otp,goertzenator/otp,vinoski/otp,emile/otp,ader1990/otp,bsmr-erlang/otp,ahmedshafeeq/otp,mikpe/otp,marquisthunder/otp,lrascao/otp,paladim/otp,rlipscombe/otp,lianghaivv/otp,sitexa/otp,saleyn/otp,ferd/otp,lhslll/otp,matwey/otp,marquisthunder/otp,awetzel/otp,lemenkov/otp,beni55/otp,lucafavatella/otp,RaimoNiskanen/otp,klarna/otp,hairyhum/otp,psyeugenic/otp,lhslll/otp,msantos/otp,aboroska/otp,RJ/otp,NOMORECOFFEE/otp,aboroska/otp,ferd/otp,johanclaesson/otp,dgud/otp,g-andrade/otp,bsmr-erlang/otp,Teino1978-Corp/erlang-otp,jinshana/otp,bjorng/otp,entropiae/otp,platinumthinker/otp,haguenau/otp,sammoth-wazoku/otp,potatosalad/otp,klarna/otp,krishnakumar4a4/otp,emile/otp,schlagert/otp,release-project/otp,mikpe/otp,kvakvs/otp,bernardd/otp,release-project/otp,bjorng/otp,bernardd/otp,lrascao/otp,bugs-erlang-org/otp,RaimoNiskanen/otp,legoscia/otp,beni55/otp,vladdu/otp,beni55/otp,NOMORECOFFEE/otp,cobusc/otp,weisslj/otp,fenollp/otp,lightcyphers/otp,erlang/otp,mikpe/otp,jinshana/otp,lemenkov/otp,enikki/otp,aboroska/otp,cnbin/otp,lhslll/otp,ahmedshafeeq/otp,neeraj9/otp,jamesruan/otp,sammoth-wazoku/otp,sammoth-wazoku/otp,fenollp/otp,uabboli/otp,mujiatong/otp,uabboli/otp,goertzenator/otp,falkevik/otp,gjaldon/otp,yangchengjian/otp,mujiatong/otp,isvilen/otp,dumbbell/otp,g-andrade/otp,release-project/otp,bsmr-erlang/otp,vinoski/otp,lightcyphers/otp,RoadRunnr/otp,potatosalad/otp,lhslll/otp,jj1bdx/otp,lucafavatella/otp,theom/otp,erlang/otp,theom/otp,jinshana/otp,hairyhum/otp,bsmr-erlang/otp,paulcager/otp,stolen/otp,lightcyphers/otp,tuncer/otp,massemanet/otp,klarna/otp,theom/otp,platinumthinker/otp,c-rack/otp,hairyhum/otp,mujiatong/otp,c-rack/otp,tuncer/otp,NOMORECOFFEE/otp,VincentHHL/otp,aboroska/otp,c-rack/otp,jemsbhai/otp,RaimoNiskanen/otp,benoitc/otp-1,getong/otp,g-andrade/otp,bjorng/otp,derek121/otp,falkevik/otp,lrascao/otp,NOMORECOFFEE/otp,gjaldon/otp,kvakvs/otp,vinoski/otp,getong/otp,vladdu/otp,jemsbhai/otp,VincentHHL/otp,electricimp/otp,vladdu/otp,GinjaNinja32/otp,vladdu/otp,basho/otp,riverrun/otp,jamesruan/otp,jamesruan/otp,lemenkov/otp,electricimp/otp,benoitc/otp-1,jemsbhai/otp,tuncer/otp,weisslj/otp,platinumthinker/otp,lightcyphers/otp,krishnakumar4a4/otp,GinjaNinja32/otp,lrascao/otp,beni55/otp,weisslj/otp,lightcyphers/otp,rlipscombe/otp,RaimoNiskanen/otp,VincentHHL/otp,potatosalad/otp,getong/otp,basho/otp,Teino1978-Corp/otp,uabboli/otp,derek121/otp,RaimoNiskanen/otp,dgud/otp,rlipscombe/otp,cnbin/otp,mikpe/otp,ahmedshafeeq/otp,kvakvs/otp,lianghaivv/otp,release-project/otp,haguenau/otp,paulcager/otp,electricimp/otp,palas/otp,weisslj/otp,dgud/otp,getong/otp,RaimoNiskanen/otp,bugs-erlang-org/otp,lantti/otp,fenollp/otp,derek121/otp,sitexa/otp,RaimoNiskanen/otp,Teino1978-Corp/otp,weisslj/otp,g-andrade/otp,mikpe/otp,gjaldon/otp,potatosalad/otp,mujiatong/otp,beni55/otp,ader1990/otp,vladdu/otp,yangchengjian/otp,entropiae/otp,bugs-erlang-org/otp,palas/otp,electricimp/otp,krishnakumar4a4/otp,massemanet/otp,hairyhum/otp,palas/otp,schlagert/otp,gjaldon/otp,weisslj/otp,paulcager/otp,tuncer/otp,vic/otp,cobusc/otp,emacsmirror/erlang,sammoth-wazoku/otp,potatosalad/otp,emacsmirror/erlang,bsmr-erlang/otp,msantos/otp,dumbbell/otp,RichMorin/otp,neeraj9/otp,cobusc/otp,RGafiyatullin/otp,lemenkov/otp,bsmr-erlang/otp,psyeugenic/otp,bernardd/otp,erlang/otp,benoitc/otp-1,lightcyphers/otp,cnbin/otp,msantos/otp,Teino1978-Corp/otp,getong/otp,derek121/otp,paulcager/otp,Teino1978-Corp/erlang-otp,gjaldon/otp,krishnakumar4a4/otp,isvilen/otp,derek121/otp,platinumthinker/otp,entropiae/otp,lrascao/otp,lantti/otp,benoitc/otp-1,cobusc/otp,haguenau/otp,bernardd/otp,rlipscombe/otp,RJ/otp,neeraj9/otp,NOMORECOFFEE/otp,dgud/otp,electricimp/otp,VincentHHL/otp,fenollp/otp,haguenau/otp,derek121/otp,psyeugenic/otp,dumbbell/otp,paladim/otp,yangchengjian/otp,fenollp/otp,sitexa/otp,saleyn/otp,marquisthunder/otp,Teino1978-Corp/erlang-otp,electricimp/otp,erlang/otp,saleyn/otp,vinoski/otp,GinjaNinja32/otp,falkevik/otp,theom/otp,tuncer/otp,bsmr-erlang/otp,cobusc/otp,schlagert/otp,marquisthunder/otp,awetzel/otp,klarna/otp,cobusc/otp,hairyhum/otp,jinshana/otp,lianghaivv/otp,RoadRunnr/otp,paladim/otp,lantti/otp,saleyn/otp,jj1bdx/otp,johanclaesson/otp,sdebnath/otp,c-rack/otp,yangchengjian/otp,johanclaesson/otp,weisslj/otp,isvilen/otp,matwey/otp,gjaldon/otp,krishnakumar4a4/otp,c-rack/otp,Teino1978-Corp/otp,massemanet/otp,psyeugenic/otp,jj1bdx/otp,bugs-erlang-org/otp,sammoth-wazoku/otp,uabboli/otp,ader1990/otp,legoscia/otp,vic/otp,electricimp/otp,getong/otp,bsmr-erlang/otp,lemenkov/otp,massemanet/otp,RichMorin/otp,derek121/otp,emile/otp,bugs-erlang-org/otp,kvakvs/otp,RGafiyatullin/otp,lhslll/otp,basho/otp,release-project/otp,lrascao/otp,tuncer/otp,RJ/otp,enikki/otp,theom/otp,paladim/otp,theom/otp,basho/otp,g-andrade/otp,neeraj9/otp,RichMorin/otp,NOMORECOFFEE/otp,basho/otp,RGafiyatullin/otp,lantti/otp,vic/otp,schlagert/otp,hairyhum/otp,basho/otp,isvilen/otp,paladim/otp,yangchengjian/otp,jamesruan/otp,electricimp/otp,haguenau/otp,bernardd/otp,RJ/otp,awetzel/otp,goertzenator/otp,mujiatong/otp,isvilen/otp,lantti/otp,entropiae/otp,massemanet/otp,enikki/otp,erlang/otp,lantti/otp,benoitc/otp-1,paulcager/otp,sammoth-wazoku/otp,rlipscombe/otp,bjorng/otp,marquisthunder/otp,g-andrade/otp,schlagert/otp,Teino1978-Corp/otp,stolen/otp,mikpe/otp,vladdu/otp,emacsmirror/erlang,sdebnath/otp,entropiae/otp,jj1bdx/otp,psyeugenic/otp,bernardd/otp,sitexa/otp,sitexa/otp,VincentHHL/otp,RoadRunnr/otp,dumbbell/otp,fenollp/otp,RoadRunnr/otp,beni55/otp,dumbbell/otp,haguenau/otp,sammoth-wazoku/otp,lucafavatella/otp,palas/otp,Teino1978-Corp/erlang-otp,RGafiyatullin/otp,mikpe/otp,vinoski/otp,jemsbhai/otp,RJ/otp,g-andrade/otp,psyeugenic/otp,sdebnath/otp,krishnakumar4a4/otp,g-andrade/otp,dgud/otp,bugs-erlang-org/otp,riverrun/otp,bugs-erlang-org/otp,lrascao/otp,RGafiyatullin/otp,emacsmirror/erlang,matwey/otp,jj1bdx/otp,massemanet/otp,dumbbell/otp,emile/otp,sdebnath/otp,paladim/otp,lianghaivv/otp,ahmedshafeeq/otp,vinoski/otp,electricimp/otp,platinumthinker/otp,dumbbell/otp,enikki/otp,cnbin/otp,GinjaNinja32/otp,RGafiyatullin/otp,palas/otp,awetzel/otp,haguenau/otp,schlagert/otp,ahmedshafeeq/otp,isvilen/otp,enikki/otp,vic/otp,VincentHHL/otp,getong/otp,ader1990/otp,RichMorin/otp,enikki/otp,jinshana/otp,bjorng/otp,stolen/otp,uabboli/otp,dgud/otp,bjorng/otp,lucafavatella/otp