Produce immutable.IndexedSeq, not collection.IndexedSeq, in functions

Where the latter was produced before, e.g. Foldable#toIndexedSeq.  This is more consistent with `IndexedSeq` instances, and even `toIndexedSeq` in Scala collections means the immutable version.

Sequel to #177.