clean up some unnecessary C-API usages and integer sizes

note: integer size fixes which require corresponding changes in itertoolz.pxd
Merge pull request #26 from scoder/patch-1

clean up some unnecessary C-API usages and fix integer sizes