some small fixes

Hi Robert,
I was looking at your nice lecture notes and fixed a few typos I found along the way.
In addition, I added "i" to the cdef int definition in your cython example - for me, this speeds up the cython example for dcumsum from 56 ms to 270 us!

Best,
Johannes