Implement #1859 "Saxon to support Scala return types"

- convert `Traversable[_]`, `Option[_]`, `Iterator[_]`
- don't create new NamePool instances
- remove Java-specific functions when possible
Fix #1857 "Repeated grid: can't select "No minimum""