Fix code to be compilable with latest rustc:
- splitn arguments order

Closes #371