Bug fixes for 'groupBy' and 'splitOn'

'groupBy' was dropping the first element of each group and 'splitOn' was
incorrectly negating the predicate