Updating `append!` to handle sequences.