Removed needless check from SourceStream, and preconditions to SourceReference.