[test] add 8 error messages to feature_segwit and change version to type
[test] add 8 error messages to feature_segwit and change version to type

P2WPKH witness program without signature -> throws "hash mismatch" error
P2WSH witness program without signature -> throws "empty witness" error
same errors for P2SH_P2WPKH and P2SH_P2WSH respectively when passed redeemScript but no signature
P2SH_P2WPKH and P2SH_P2WSH with no signature fail with "Operation not valid with current stack size" when not signed due to missing input
change VER to TYPE and constants WIT_V0 to P2WPKH=0 and WIT_V1 to P2WSH=1

lateminer/bitcoin,bitcoinsSG/bitcoin,MeshCollider/bitcoin,ajtowns/bitcoin,instagibbs/bitcoin,instagibbs/bitcoin,rnicoll/bitcoin,anditto/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,lateminer/bitcoin,Xekyo/bitcoin,pstratem/bitcoin,jonasschnelli/bitcoin,practicalswift/bitcoin,kallewoof/bitcoin,EthanHeilman/bitcoin,MeshCollider/bitcoin,lateminer/bitcoin,sstone/bitcoin,prusnak/bitcoin,litecoin-project/litecoin,particl/particl-core,JeremyRubin/bitcoin,qtumproject/qtum,ajtowns/bitcoin,domob1812/bitcoin,bitcoin/bitcoin,JeremyRubin/bitcoin,Sjors/bitcoin,andreaskern/bitcoin,GroestlCoin/bitcoin,cdecker/bitcoin,ElementsProject/elements,AkioNak/bitcoin,ajtowns/bitcoin,namecoin/namecore,GroestlCoin/GroestlCoin,MarcoFalke/bitcoin,mruddy/bitcoin,rnicoll/dogecoin,MarcoFalke/bitcoin,achow101/bitcoin,cdecker/bitcoin,apoelstra/bitcoin,midnightmagic/bitcoin,bitcoinknots/bitcoin,fujicoin/fujicoin,MarcoFalke/bitcoin,namecoin/namecore,tecnovert/particl-core,instagibbs/bitcoin,practicalswift/bitcoin,ElementsProject/elements,prusnak/bitcoin,bitcoin/bitcoin,practicalswift/bitcoin,domob1812/bitcoin,JeremyRubin/bitcoin,pataquets/namecoin-core,MeshCollider/bitcoin,AkioNak/bitcoin,apoelstra/bitcoin,rnicoll/bitcoin,namecoin/namecore,n1bor/bitcoin,GroestlCoin/GroestlCoin,apoelstra/bitcoin,jambolo/bitcoin,AkioNak/bitcoin,Xekyo/bitcoin,domob1812/namecore,prusnak/bitcoin,qtumproject/qtum,Xekyo/bitcoin,jlopp/statoshi,jambolo/bitcoin,namecoin/namecoin-core,cdecker/bitcoin,EthanHeilman/bitcoin,andreaskern/bitcoin,midnightmagic/bitcoin,tecnovert/particl-core,qtumproject/qtum,bitcoinsSG/bitcoin,bitcoin/bitcoin,mm-s/bitcoin,jamesob/bitcoin,apoelstra/bitcoin,rnicoll/dogecoin,jamesob/bitcoin,dscotese/bitcoin,kallewoof/bitcoin,jlopp/statoshi,AkioNak/bitcoin,domob1812/namecore,domob1812/namecore,fanquake/bitcoin,qtumproject/qtum,jonasschnelli/bitcoin,AkioNak/bitcoin,jnewbery/bitcoin,particl/particl-core,anditto/bitcoin,jamesob/bitcoin,namecoin/namecore,Sjors/bitcoin,midnightmagic/bitcoin,MarcoFalke/bitcoin,domob1812/namecore,tecnovert/particl-core,MeshCollider/bitcoin,mruddy/bitcoin,rnicoll/bitcoin,jamesob/bitcoin,midnightmagic/bitcoin,cdecker/bitcoin,instagibbs/bitcoin,jlopp/statoshi,ajtowns/bitcoin,particl/particl-core,GroestlCoin/bitcoin,MarcoFalke/bitcoin,prusnak/bitcoin,domob1812/namecore,GroestlCoin/bitcoin,sipsorcery/bitcoin,namecoin/namecoin-core,lateminer/bitcoin,litecoin-project/litecoin,pataquets/namecoin-core,EthanHeilman/bitcoin,GroestlCoin/bitcoin,Xekyo/bitcoin,n1bor/bitcoin,qtumproject/qtum,yenliangl/bitcoin,rnicoll/dogecoin,anditto/bitcoin,GroestlCoin/bitcoin,yenliangl/bitcoin,sipsorcery/bitcoin,GroestlCoin/bitcoin,andreaskern/bitcoin,pstratem/bitcoin,sstone/bitcoin,rnicoll/bitcoin,namecoin/namecoin-core,MeshCollider/bitcoin,Sjors/bitcoin,GroestlCoin/GroestlCoin,JeremyRubin/bitcoin,dscotese/bitcoin,litecoin-project/litecoin,jambolo/bitcoin,jnewbery/bitcoin,practicalswift/bitcoin,jamesob/bitcoin,ElementsProject/elements,particl/particl-core,practicalswift/bitcoin,jlopp/statoshi,fanquake/bitcoin,sipsorcery/bitcoin,n1bor/bitcoin,alecalve/bitcoin,GroestlCoin/GroestlCoin,sstone/bitcoin,Sjors/bitcoin,mruddy/bitcoin,bitcoin/bitcoin,qtumproject/qtum,GroestlCoin/GroestlCoin,rnicoll/dogecoin,dscotese/bitcoin,apoelstra/bitcoin,anditto/bitcoin,sipsorcery/bitcoin,jonasschnelli/bitcoin,litecoin-project/litecoin,sipsorcery/bitcoin,namecoin/namecoin-core,Xekyo/bitcoin,rnicoll/bitcoin,prusnak/bitcoin,pstratem/bitcoin,yenliangl/bitcoin,Sjors/bitcoin,sstone/bitcoin,jonasschnelli/bitcoin,dscotese/bitcoin,lateminer/bitcoin,mm-s/bitcoin,namecoin/namecore,fanquake/bitcoin,ElementsProject/elements,apoelstra/bitcoin,fanquake/bitcoin,anditto/bitcoin,domob1812/bitcoin,midnightmagic/bitcoin,litecoin-project/litecoin,ajtowns/bitcoin,bitcoinsSG/bitcoin,pataquets/namecoin-core,GroestlCoin/GroestlCoin,yenliangl/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,achow101/bitcoin,jambolo/bitcoin,andreaskern/bitcoin,kallewoof/bitcoin,alecalve/bitcoin,jambolo/bitcoin,cdecker/bitcoin,alecalve/bitcoin,AkioNak/bitcoin,mm-s/bitcoin,bitcoinknots/bitcoin,mruddy/bitcoin,tecnovert/particl-core,achow101/bitcoin,anditto/bitcoin,jamesob/bitcoin,lateminer/bitcoin,jambolo/bitcoin,pataquets/namecoin-core,jlopp/statoshi,bitcoinknots/bitcoin,sstone/bitcoin,mm-s/bitcoin,yenliangl/bitcoin,MeshCollider/bitcoin,jonasschnelli/bitcoin,mruddy/bitcoin,fujicoin/fujicoin,pstratem/bitcoin,JeremyRubin/bitcoin,domob1812/bitcoin,EthanHeilman/bitcoin,jnewbery/bitcoin,kallewoof/bitcoin,mm-s/bitcoin,namecoin/namecore,midnightmagic/bitcoin,fanquake/bitcoin,fujicoin/fujicoin,andreaskern/bitcoin,jlopp/statoshi,rnicoll/bitcoin,bitcoinsSG/bitcoin,cdecker/bitcoin,domob1812/bitcoin,practicalswift/bitcoin,litecoin-project/litecoin,namecoin/namecoin-core,instagibbs/bitcoin,pataquets/namecoin-core,sstone/bitcoin,jnewbery/bitcoin,alecalve/bitcoin,fujicoin/fujicoin,JeremyRubin/bitcoin,namecoin/namecoin-core,rnicoll/dogecoin,andreaskern/bitcoin,dscotese/bitcoin,kallewoof/bitcoin,ElementsProject/elements,tecnovert/particl-core,prusnak/bitcoin,fanquake/bitcoin,mm-s/bitcoin,bitcoin/bitcoin,particl/particl-core,ElementsProject/elements,domob1812/bitcoin,pstratem/bitcoin,n1bor/bitcoin,EthanHeilman/bitcoin,EthanHeilman/bitcoin,yenliangl/bitcoin,particl/particl-core,achow101/bitcoin,pstratem/bitcoin,kallewoof/bitcoin,tecnovert/particl-core,n1bor/bitcoin,fujicoin/fujicoin,achow101/bitcoin,jnewbery/bitcoin,dscotese/bitcoin,qtumproject/qtum,pataquets/namecoin-core,mruddy/bitcoin,bitcoinknots/bitcoin,bitcoin/bitcoin,sipsorcery/bitcoin,MarcoFalke/bitcoin,alecalve/bitcoin,alecalve/bitcoin,bitcoinsSG/bitcoin,achow101/bitcoin,instagibbs/bitcoin,bitcoinsSG/bitcoin,n1bor/bitcoin,Xekyo/bitcoin