add array_append() and append_prepend() functions