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 for the prepend function.