fix bug where you cannot insert at the end of a ShortArray

It seems ShortArray is the only array that doesn't let you insert at the end of the array (index = size). It seemed like a simple error, that's why I thought I was allowed to simply PR it