Don't run senselessly through _c_array_remove when key == a_len (beyond
the last element).
Catch the result of realloc() when removing values.