Adds an element to an array to the second place. Also supports adding to second to last place. Does the modification immutably.