Keys are now updated properly when splicing arrays.