Fixes issue #1929, with insert method in IntList and FloatList.