Renames concatenateToArray to appendToArray

In an effort to reduce the number of TODOs in the code. Note that this also fixes a small naming issue with the prepend function.