BUG: Fixed the same bug in array_remove_val().