Small improvements to zframe_put/get integers

- return -1 on error, not 1
- unrolled loops are simpler and faster
- slightly tweaked API methods
- modified methods so error handling is last
- don't assert on invalid frames (frames are external data)
Merge pull request #372 from hintjens/master

Small improvements to zframe_put/get integers