Solve a bug in `splitWith`

`takenWhile` and `dropWhile`was called with the wrong arguments.