code: public static Object removeRef (Object[] list, Object element)
      {
          return remove(REFERENCE_COMP, list, element);
      }
docs: Removes the first element that is referentially equal to the
  supplied element (<code>list[idx] == element</code>). The elements
  after the removed element will be slid down the array one spot to
  fill the place of the removed element.
  
  @return the object that was removed from the array or null if no
  matching object was found.