code: public static Object clearRef (Object[] list, Object element)
      {
          return clear(REFERENCE_COMP, list, element);
      }
docs: Clears out the first element that is referentially equal to the
  supplied element (<code>list[idx] == element</code>).
  
  @return the element that was removed or null if it was not found.