added the clear operation to the EntityRefList.