Rewriting `append!` and `push!` in the prelude.