Add ToReadOnly() extension method.