Return index on put.
Return index on put.

closes #2819

titovmaxim/libgdx,youprofit/libgdx,KrisLee/libgdx,toloudis/libgdx,tommycli/libgdx,1yvT0s/libgdx,xpenatan/libgdx-LWJGL3,MikkelTAndersen/libgdx,PedroRomanoBarbosa/libgdx,azakhary/libgdx,1yvT0s/libgdx,libgdx/libgdx,djom20/libgdx,JDReutt/libgdx,sarkanyi/libgdx,anserran/libgdx,1yvT0s/libgdx,tell10glu/libgdx,SidneyXu/libgdx,youprofit/libgdx,yangweigbh/libgdx,jasonwee/libgdx,alireza-hosseini/libgdx,MikkelTAndersen/libgdx,zhimaijoy/libgdx,sarkanyi/libgdx,ninoalma/libgdx,ztv/libgdx,katiepino/libgdx,josephknight/libgdx,davebaol/libgdx,titovmaxim/libgdx,toa5/libgdx,thepullman/libgdx,tommyettinger/libgdx,firefly2442/libgdx,FredGithub/libgdx,Gliby/libgdx,zhimaijoy/libgdx,ya7lelkom/libgdx,billgame/libgdx,MikkelTAndersen/libgdx,kagehak/libgdx,djom20/libgdx,antag99/libgdx,309746069/libgdx,1yvT0s/libgdx,azakhary/libgdx,Dzamir/libgdx,gdos/libgdx,UnluckyNinja/libgdx,SidneyXu/libgdx,FyiurAmron/libgdx,bladecoder/libgdx,saltares/libgdx,collinsmith/libgdx,jsjolund/libgdx,fiesensee/libgdx,alex-dorokhov/libgdx,collinsmith/libgdx,hyvas/libgdx,PedroRomanoBarbosa/libgdx,realitix/libgdx,kotcrab/libgdx,nudelchef/libgdx,realitix/libgdx,sarkanyi/libgdx,FyiurAmron/libgdx,codepoke/libgdx,toloudis/libgdx,mumer92/libgdx,FredGithub/libgdx,gdos/libgdx,toa5/libgdx,ThiagoGarciaAlves/libgdx,stinsonga/libgdx,ya7lelkom/libgdx,JDReutt/libgdx,TheAks999/libgdx,toloudis/libgdx,libgdx/libgdx,mumer92/libgdx,jberberick/libgdx,yangweigbh/libgdx,alireza-hosseini/libgdx,MetSystem/libgdx,xranby/libgdx,haedri/libgdx-1,Heart2009/libgdx,josephknight/libgdx,andyvand/libgdx,josephknight/libgdx,stinsonga/libgdx,antag99/libgdx,EsikAntony/libgdx,Thotep/libgdx,bgroenks96/libgdx,SidneyXu/libgdx,tommycli/libgdx,MadcowD/libgdx,tommycli/libgdx,nudelchef/libgdx,BlueRiverInteractive/libgdx,titovmaxim/libgdx,bgroenks96/libgdx,luischavez/libgdx,curtiszimmerman/libgdx,kagehak/libgdx,BlueRiverInteractive/libgdx,alireza-hosseini/libgdx,ya7lelkom/libgdx,Wisienkas/libgdx,anserran/libgdx,azakhary/libgdx,curtiszimmerman/libgdx,GreenLightning/libgdx,Gliby/libgdx,del-sol/libgdx,curtiszimmerman/libgdx,junkdog/libgdx,titovmaxim/libgdx,toa5/libgdx,SidneyXu/libgdx,bsmr-java/libgdx,stinsonga/libgdx,cypherdare/libgdx,zhimaijoy/libgdx,1yvT0s/libgdx,kagehak/libgdx,xranby/libgdx,Zonglin-Li6565/libgdx,ttencate/libgdx,nelsonsilva/libgdx,antag99/libgdx,tommycli/libgdx,yangweigbh/libgdx,KrisLee/libgdx,jberberick/libgdx,billgame/libgdx,Xhanim/libgdx,GreenLightning/libgdx,antag99/libgdx,Badazdz/libgdx,ricardorigodon/libgdx,FyiurAmron/libgdx,firefly2442/libgdx,nudelchef/libgdx,josephknight/libgdx,djom20/libgdx,designcrumble/libgdx,MikkelTAndersen/libgdx,KrisLee/libgdx,ricardorigodon/libgdx,ya7lelkom/libgdx,sarkanyi/libgdx,jberberick/libgdx,gf11speed/libgdx,noelsison2/libgdx,samskivert/libgdx,samskivert/libgdx,hyvas/libgdx,Thotep/libgdx,gouessej/libgdx,EsikAntony/libgdx,kagehak/libgdx,Zomby2D/libgdx,ztv/libgdx,mumer92/libgdx,ttencate/libgdx,309746069/libgdx,sarkanyi/libgdx,Senth/libgdx,UnluckyNinja/libgdx,MovingBlocks/libgdx,codepoke/libgdx,billgame/libgdx,MadcowD/libgdx,saltares/libgdx,ztv/libgdx,copystudy/libgdx,saqsun/libgdx,shiweihappy/libgdx,djom20/libgdx,thepullman/libgdx,hyvas/libgdx,js78/libgdx,TheAks999/libgdx,billgame/libgdx,toloudis/libgdx,Dzamir/libgdx,ya7lelkom/libgdx,gouessej/libgdx,1yvT0s/libgdx,shiweihappy/libgdx,haedri/libgdx-1,firefly2442/libgdx,copystudy/libgdx,FredGithub/libgdx,Dzamir/libgdx,copystudy/libgdx,UnluckyNinja/libgdx,toa5/libgdx,alex-dorokhov/libgdx,zommuter/libgdx,gdos/libgdx,del-sol/libgdx,junkdog/libgdx,Thotep/libgdx,samskivert/libgdx,xpenatan/libgdx-LWJGL3,MovingBlocks/libgdx,luischavez/libgdx,MetSystem/libgdx,czyzby/libgdx,snovak/libgdx,xpenatan/libgdx-LWJGL3,FredGithub/libgdx,firefly2442/libgdx,codepoke/libgdx,sjosegarcia/libgdx,saqsun/libgdx,curtiszimmerman/libgdx,del-sol/libgdx,tell10glu/libgdx,zhimaijoy/libgdx,copystudy/libgdx,tommycli/libgdx,bgroenks96/libgdx,Gliby/libgdx,haedri/libgdx-1,ttencate/libgdx,Thotep/libgdx,js78/libgdx,designcrumble/libgdx,nave966/libgdx,cypherdare/libgdx,kagehak/libgdx,zommuter/libgdx,designcrumble/libgdx,EsikAntony/libgdx,davebaol/libgdx,junkdog/libgdx,fwolff/libgdx,PedroRomanoBarbosa/libgdx,ztv/libgdx,snovak/libgdx,realitix/libgdx,FyiurAmron/libgdx,fwolff/libgdx,Dzamir/libgdx,libgdx/libgdx,saltares/libgdx,gdos/libgdx,zommuter/libgdx,revo09/libgdx,kotcrab/libgdx,codepoke/libgdx,petugez/libgdx,azakhary/libgdx,Senth/libgdx,Senth/libgdx,czyzby/libgdx,curtiszimmerman/libgdx,gdos/libgdx,xranby/libgdx,bsmr-java/libgdx,UnluckyNinja/libgdx,antag99/libgdx,MetSystem/libgdx,xoppa/libgdx,kotcrab/libgdx,samskivert/libgdx,anserran/libgdx,PedroRomanoBarbosa/libgdx,alex-dorokhov/libgdx,davebaol/libgdx,noelsison2/libgdx,fwolff/libgdx,1yvT0s/libgdx,Zonglin-Li6565/libgdx,jasonwee/libgdx,gouessej/libgdx,Heart2009/libgdx,collinsmith/libgdx,bladecoder/libgdx,MetSystem/libgdx,zhimaijoy/libgdx,petugez/libgdx,anserran/libgdx,zommuter/libgdx,FredGithub/libgdx,libgdx/libgdx,junkdog/libgdx,bladecoder/libgdx,gf11speed/libgdx,JDReutt/libgdx,fiesensee/libgdx,js78/libgdx,anserran/libgdx,Xhanim/libgdx,Gliby/libgdx,BlueRiverInteractive/libgdx,snovak/libgdx,flaiker/libgdx,309746069/libgdx,ttencate/libgdx,tell10glu/libgdx,shiweihappy/libgdx,cypherdare/libgdx,GreenLightning/libgdx,thepullman/libgdx,MovingBlocks/libgdx,srwonka/libGdx,sjosegarcia/libgdx,Wisienkas/libgdx,xoppa/libgdx,yangweigbh/libgdx,JDReutt/libgdx,Zomby2D/libgdx,zommuter/libgdx,nrallakis/libgdx,ninoalma/libgdx,stickyd/libgdx,SidneyXu/libgdx,Wisienkas/libgdx,Badazdz/libgdx,mumer92/libgdx,haedri/libgdx-1,Deftwun/libgdx,bsmr-java/libgdx,josephknight/libgdx,revo09/libgdx,NathanSweet/libgdx,EsikAntony/libgdx,FyiurAmron/libgdx,titovmaxim/libgdx,FyiurAmron/libgdx,realitix/libgdx,tommyettinger/libgdx,alex-dorokhov/libgdx,ninoalma/libgdx,snovak/libgdx,stickyd/libgdx,alex-dorokhov/libgdx,UnluckyNinja/libgdx,xoppa/libgdx,Xhanim/libgdx,katiepino/libgdx,tell10glu/libgdx,KrisLee/libgdx,revo09/libgdx,jsjolund/libgdx,Senth/libgdx,nudelchef/libgdx,fwolff/libgdx,bgroenks96/libgdx,samskivert/libgdx,sjosegarcia/libgdx,TheAks999/libgdx,ThiagoGarciaAlves/libgdx,ninoalma/libgdx,nelsonsilva/libgdx,ThiagoGarciaAlves/libgdx,saqsun/libgdx,del-sol/libgdx,andyvand/libgdx,ya7lelkom/libgdx,titovmaxim/libgdx,JDReutt/libgdx,gouessej/libgdx,thepullman/libgdx,ninoalma/libgdx,andyvand/libgdx,toa5/libgdx,toloudis/libgdx,xpenatan/libgdx-LWJGL3,alireza-hosseini/libgdx,PedroRomanoBarbosa/libgdx,billgame/libgdx,firefly2442/libgdx,noelsison2/libgdx,codepoke/libgdx,junkdog/libgdx,zommuter/libgdx,NathanSweet/libgdx,petugez/libgdx,collinsmith/libgdx,saltares/libgdx,Deftwun/libgdx,andyvand/libgdx,Deftwun/libgdx,czyzby/libgdx,hyvas/libgdx,flaiker/libgdx,xoppa/libgdx,czyzby/libgdx,alex-dorokhov/libgdx,jasonwee/libgdx,gouessej/libgdx,czyzby/libgdx,samskivert/libgdx,MovingBlocks/libgdx,tommycli/libgdx,realitix/libgdx,nave966/libgdx,jsjolund/libgdx,collinsmith/libgdx,revo09/libgdx,nelsonsilva/libgdx,billgame/libgdx,andyvand/libgdx,stickyd/libgdx,petugez/libgdx,FredGithub/libgdx,sjosegarcia/libgdx,alireza-hosseini/libgdx,Wisienkas/libgdx,srwonka/libGdx,KrisLee/libgdx,Zonglin-Li6565/libgdx,ztv/libgdx,sjosegarcia/libgdx,haedri/libgdx-1,MovingBlocks/libgdx,gf11speed/libgdx,Badazdz/libgdx,bgroenks96/libgdx,NathanSweet/libgdx,FredGithub/libgdx,curtiszimmerman/libgdx,Heart2009/libgdx,collinsmith/libgdx,ninoalma/libgdx,Heart2009/libgdx,ricardorigodon/libgdx,kotcrab/libgdx,fwolff/libgdx,JDReutt/libgdx,junkdog/libgdx,snovak/libgdx,saqsun/libgdx,GreenLightning/libgdx,bsmr-java/libgdx,xoppa/libgdx,nrallakis/libgdx,nudelchef/libgdx,xranby/libgdx,thepullman/libgdx,MadcowD/libgdx,xpenatan/libgdx-LWJGL3,toloudis/libgdx,JFixby/libgdx,Badazdz/libgdx,tommycli/libgdx,tell10glu/libgdx,haedri/libgdx-1,flaiker/libgdx,gf11speed/libgdx,jsjolund/libgdx,MikkelTAndersen/libgdx,nave966/libgdx,codepoke/libgdx,revo09/libgdx,xoppa/libgdx,nrallakis/libgdx,ya7lelkom/libgdx,tell10glu/libgdx,alireza-hosseini/libgdx,KrisLee/libgdx,samskivert/libgdx,shiweihappy/libgdx,Zonglin-Li6565/libgdx,ninoalma/libgdx,youprofit/libgdx,firefly2442/libgdx,309746069/libgdx,flaiker/libgdx,jberberick/libgdx,nelsonsilva/libgdx,andyvand/libgdx,FyiurAmron/libgdx,luischavez/libgdx,petugez/libgdx,katiepino/libgdx,FredGithub/libgdx,davebaol/libgdx,copystudy/libgdx,designcrumble/libgdx,kotcrab/libgdx,nave966/libgdx,MikkelTAndersen/libgdx,Thotep/libgdx,jsjolund/libgdx,youprofit/libgdx,PedroRomanoBarbosa/libgdx,JFixby/libgdx,curtiszimmerman/libgdx,toa5/libgdx,Dzamir/libgdx,copystudy/libgdx,xranby/libgdx,MadcowD/libgdx,ztv/libgdx,stickyd/libgdx,alireza-hosseini/libgdx,saqsun/libgdx,MovingBlocks/libgdx,Xhanim/libgdx,Zonglin-Li6565/libgdx,tell10glu/libgdx,BlueRiverInteractive/libgdx,Xhanim/libgdx,PedroRomanoBarbosa/libgdx,ThiagoGarciaAlves/libgdx,luischavez/libgdx,srwonka/libGdx,saqsun/libgdx,fwolff/libgdx,nudelchef/libgdx,309746069/libgdx,kagehak/libgdx,gdos/libgdx,gdos/libgdx,BlueRiverInteractive/libgdx,TheAks999/libgdx,hyvas/libgdx,Wisienkas/libgdx,BlueRiverInteractive/libgdx,mumer92/libgdx,saltares/libgdx,xranby/libgdx,fiesensee/libgdx,del-sol/libgdx,anserran/libgdx,UnluckyNinja/libgdx,junkdog/libgdx,noelsison2/libgdx,tell10glu/libgdx,Badazdz/libgdx,srwonka/libGdx,Deftwun/libgdx,SidneyXu/libgdx,xranby/libgdx,nudelchef/libgdx,josephknight/libgdx,codepoke/libgdx,flaiker/libgdx,katiepino/libgdx,fiesensee/libgdx,bsmr-java/libgdx,EsikAntony/libgdx,nrallakis/libgdx,KrisLee/libgdx,jasonwee/libgdx,bsmr-java/libgdx,SidneyXu/libgdx,del-sol/libgdx,MikkelTAndersen/libgdx,josephknight/libgdx,kagehak/libgdx,Deftwun/libgdx,andyvand/libgdx,codepoke/libgdx,antag99/libgdx,nelsonsilva/libgdx,gouessej/libgdx,noelsison2/libgdx,revo09/libgdx,yangweigbh/libgdx,sarkanyi/libgdx,katiepino/libgdx,cypherdare/libgdx,gdos/libgdx,noelsison2/libgdx,BlueRiverInteractive/libgdx,hyvas/libgdx,309746069/libgdx,xpenatan/libgdx-LWJGL3,JFixby/libgdx,flaiker/libgdx,katiepino/libgdx,mumer92/libgdx,MetSystem/libgdx,kotcrab/libgdx,ThiagoGarciaAlves/libgdx,billgame/libgdx,mumer92/libgdx,gf11speed/libgdx,revo09/libgdx,czyzby/libgdx,MadcowD/libgdx,xoppa/libgdx,djom20/libgdx,bladecoder/libgdx,curtiszimmerman/libgdx,UnluckyNinja/libgdx,Zonglin-Li6565/libgdx,srwonka/libGdx,nave966/libgdx,tommyettinger/libgdx,309746069/libgdx,hyvas/libgdx,Dzamir/libgdx,jasonwee/libgdx,junkdog/libgdx,billgame/libgdx,Senth/libgdx,fwolff/libgdx,sjosegarcia/libgdx,flaiker/libgdx,srwonka/libGdx,Badazdz/libgdx,nave966/libgdx,cypherdare/libgdx,fiesensee/libgdx,Deftwun/libgdx,Deftwun/libgdx,jberberick/libgdx,kotcrab/libgdx,nrallakis/libgdx,revo09/libgdx,petugez/libgdx,gf11speed/libgdx,gf11speed/libgdx,jberberick/libgdx,bgroenks96/libgdx,JFixby/libgdx,del-sol/libgdx,zommuter/libgdx,bgroenks96/libgdx,TheAks999/libgdx,anserran/libgdx,BlueRiverInteractive/libgdx,nrallakis/libgdx,nelsonsilva/libgdx,tommycli/libgdx,ttencate/libgdx,Zomby2D/libgdx,ttencate/libgdx,gf11speed/libgdx,stinsonga/libgdx,saqsun/libgdx,Zomby2D/libgdx,kagehak/libgdx,JFixby/libgdx,sjosegarcia/libgdx,xranby/libgdx,PedroRomanoBarbosa/libgdx,GreenLightning/libgdx,JDReutt/libgdx,youprofit/libgdx,nrallakis/libgdx,samskivert/libgdx,ttencate/libgdx,Dzamir/libgdx,alex-dorokhov/libgdx,nrallakis/libgdx,srwonka/libGdx,Gliby/libgdx,MetSystem/libgdx,ricardorigodon/libgdx,davebaol/libgdx,petugez/libgdx,thepullman/libgdx,ricardorigodon/libgdx,NathanSweet/libgdx,collinsmith/libgdx,noelsison2/libgdx,Gliby/libgdx,TheAks999/libgdx,gouessej/libgdx,titovmaxim/libgdx,haedri/libgdx-1,snovak/libgdx,collinsmith/libgdx,saqsun/libgdx,JFixby/libgdx,Wisienkas/libgdx,MikkelTAndersen/libgdx,Wisienkas/libgdx,NathanSweet/libgdx,nave966/libgdx,jsjolund/libgdx,ricardorigodon/libgdx,jberberick/libgdx,realitix/libgdx,sarkanyi/libgdx,309746069/libgdx,Badazdz/libgdx,toa5/libgdx,toloudis/libgdx,designcrumble/libgdx,yangweigbh/libgdx,shiweihappy/libgdx,GreenLightning/libgdx,js78/libgdx,JFixby/libgdx,haedri/libgdx-1,saltares/libgdx,xpenatan/libgdx-LWJGL3,GreenLightning/libgdx,EsikAntony/libgdx,bsmr-java/libgdx,djom20/libgdx,bgroenks96/libgdx,jsjolund/libgdx,youprofit/libgdx,zhimaijoy/libgdx,tommyettinger/libgdx,designcrumble/libgdx,mumer92/libgdx,Badazdz/libgdx,stinsonga/libgdx,Zonglin-Li6565/libgdx,noelsison2/libgdx,MovingBlocks/libgdx,yangweigbh/libgdx,MovingBlocks/libgdx,saltares/libgdx,ThiagoGarciaAlves/libgdx,sjosegarcia/libgdx,realitix/libgdx,UnluckyNinja/libgdx,Senth/libgdx,titovmaxim/libgdx,azakhary/libgdx,andyvand/libgdx,jsjolund/libgdx,TheAks999/libgdx,jasonwee/libgdx,js78/libgdx,luischavez/libgdx,luischavez/libgdx,ricardorigodon/libgdx,davebaol/libgdx,Gliby/libgdx,sarkanyi/libgdx,ninoalma/libgdx,firefly2442/libgdx,alex-dorokhov/libgdx,jberberick/libgdx,Xhanim/libgdx,Zomby2D/libgdx,MadcowD/libgdx,jasonwee/libgdx,srwonka/libGdx,luischavez/libgdx,thepullman/libgdx,realitix/libgdx,thepullman/libgdx,Heart2009/libgdx,js78/libgdx,FyiurAmron/libgdx,snovak/libgdx,toa5/libgdx,Thotep/libgdx,antag99/libgdx,djom20/libgdx,firefly2442/libgdx,ricardorigodon/libgdx,stickyd/libgdx,zhimaijoy/libgdx,snovak/libgdx,nudelchef/libgdx,Dzamir/libgdx,antag99/libgdx,MetSystem/libgdx,xoppa/libgdx,petugez/libgdx,MadcowD/libgdx,zommuter/libgdx,alireza-hosseini/libgdx,Gliby/libgdx,shiweihappy/libgdx,JDReutt/libgdx,js78/libgdx,Senth/libgdx,Thotep/libgdx,Xhanim/libgdx,Xhanim/libgdx,xpenatan/libgdx-LWJGL3,Zonglin-Li6565/libgdx,designcrumble/libgdx,toloudis/libgdx,fiesensee/libgdx,djom20/libgdx,tommyettinger/libgdx,copystudy/libgdx,SidneyXu/libgdx,zhimaijoy/libgdx,yangweigbh/libgdx,EsikAntony/libgdx,MadcowD/libgdx,del-sol/libgdx,copystudy/libgdx,youprofit/libgdx,Heart2009/libgdx,josephknight/libgdx,ttencate/libgdx,designcrumble/libgdx,katiepino/libgdx,ThiagoGarciaAlves/libgdx,kotcrab/libgdx,fiesensee/libgdx,azakhary/libgdx,stickyd/libgdx,bsmr-java/libgdx,js78/libgdx,stickyd/libgdx,czyzby/libgdx,youprofit/libgdx,Heart2009/libgdx,shiweihappy/libgdx,ya7lelkom/libgdx,anserran/libgdx,bladecoder/libgdx,ztv/libgdx,TheAks999/libgdx,Wisienkas/libgdx,Senth/libgdx,libgdx/libgdx,nave966/libgdx,shiweihappy/libgdx,JFixby/libgdx,stickyd/libgdx,MetSystem/libgdx,Thotep/libgdx,ThiagoGarciaAlves/libgdx,czyzby/libgdx,fiesensee/libgdx,luischavez/libgdx,EsikAntony/libgdx,Heart2009/libgdx,GreenLightning/libgdx,Deftwun/libgdx,ztv/libgdx,hyvas/libgdx,flaiker/libgdx,gouessej/libgdx,saltares/libgdx,1yvT0s/libgdx,jasonwee/libgdx,KrisLee/libgdx,fwolff/libgdx,katiepino/libgdx