ported groupByUntil function.
modified groupByUntil include the key of the group in the closings function.
Merge pull request #732 from chrisgrimm/master

Ported groupByUntil function to scala-adapter