Minor improvements to Iterable.scan()

Refined `empty` and `size` in the returned `Iterable` and `string` in its `Iterator`.