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

Closes #371
auto merge of #372 : jauhien/cargo/master, r=alexcrichton

- splitn arguments order
- hasmap indexing

Closes #371