codegen: Check we don't pop too many indexes
codegen: Check we don't pop too many indexes

fgouget/spice-common,SPICE/spice-common,fgouget/spice-common,fgouget/spice-common,SPICE/spice-common,SPICE/spice-common,fgouget/spice-common