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

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

- splitn arguments order
- hasmap indexing

Closes #371