Fixed ArrayController failed to recognize row 0 as the insert location
Fixed ArrayController failed to recognize row 0 as the insert location

The logic is wrong in the test for last selection since it can be 0
and if there is no selection, [_selectionIndexes lastIndex] returns -1

Fixes #1723

daboe01/cappuccino,AlexanderMazaletskiy/cappuccino,krodelin/cappuccino,cappuccino/cappuccino,deltaprojects/cappuccino,enquora/cappuccino,tancred/cappuccino,mrcarlberg/cappuccino,cacaodev/cappuccino,enquora/cappuccino,zittix/cappuccino,Dogild/cappuccino,daboe01/cappuccino,zittix/cappuccino,Rosch/cappuccino,rgv151/cappuccino,mrcarlberg/cappuccino,Rosch/cappuccino,FrankReh/cappuccino,deltaprojects/cappuccino,cacaodev/cappuccino,kidaa/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,kidaa/cappuccino,primalmotion/cappuccino,deltaprojects/cappuccino,primalmotion/cappuccino,tancred/cappuccino,cappuccino/cappuccino,FrankReh/cappuccino,daboe01/cappuccino,cappuccino/cappuccino,mrcarlberg/cappuccino,deltaprojects/cappuccino,rgv151/cappuccino,Rosch/cappuccino,deltaprojects/cappuccino,enquora/cappuccino,Dogild/cappuccino,koamac/Cappuccino,rgv151/cappuccino,cappuccino/cappuccino,deltaprojects/cappuccino,cacaodev/cappuccino,cacaodev/cappuccino,FrankReh/cappuccino,FrankReh/cappuccino,wangshijin/cappuccino,FrankReh/cappuccino,primalmotion/cappuccino,krodelin/cappuccino,mrcarlberg/cappuccino,FrankReh/cappuccino,krodelin/cappuccino,daboe01/cappuccino,kidaa/cappuccino,rgv151/cappuccino,Dogild/cappuccino,FrankReh/cappuccino,krodelin/cappuccino,krodelin/cappuccino,rgv151/cappuccino,cacaodev/cappuccino,kidaa/cappuccino,AlexanderMazaletskiy/cappuccino,Dogild/cappuccino,mrcarlberg/cappuccino,deltaprojects/cappuccino,Rosch/cappuccino,kidaa/cappuccino,zittix/cappuccino,enquora/cappuccino,wangshijin/cappuccino,primalmotion/cappuccino,primalmotion/cappuccino,rgv151/cappuccino,AlexanderMazaletskiy/cappuccino,koamac/Cappuccino,wangshijin/cappuccino,Rosch/cappuccino,daboe01/cappuccino,Dogild/cappuccino,mrcarlberg/cappuccino,wangshijin/cappuccino,wangshijin/cappuccino,cappuccino/cappuccino,enquora/cappuccino,Rosch/cappuccino,Rosch/cappuccino,tancred/cappuccino,Dogild/cappuccino,wangshijin/cappuccino,krodelin/cappuccino,enquora/cappuccino,FrankReh/cappuccino,mrcarlberg/cappuccino,tancred/cappuccino,AlexanderMazaletskiy/cappuccino,daboe01/cappuccino,primalmotion/cappuccino,tancred/cappuccino,koamac/Cappuccino,koamac/Cappuccino,krodelin/cappuccino,zittix/cappuccino,tancred/cappuccino,zittix/cappuccino,mrcarlberg/cappuccino,AlexanderMazaletskiy/cappuccino,AlexanderMazaletskiy/cappuccino,cacaodev/cappuccino,zittix/cappuccino,koamac/Cappuccino,rgv151/cappuccino,cacaodev/cappuccino,zittix/cappuccino,Dogild/cappuccino,kidaa/cappuccino,koamac/Cappuccino,cappuccino/cappuccino,primalmotion/cappuccino,enquora/cappuccino