iterators getReferredIterator() modified such that null values are not
returned (similar to ClassInstance.getReferredIterator()).
Class made thread-safe.