Improve removeAttribute support for Arrays

When deleting an element from an array, it still stays as
a null value. Use slice instead.