Add support for const pointers

As mentioned in the development mailing list, [const pointers are not working][1]. With this commit they work for me and all other tests are still passing.

I'm new to Cython (and not that good with C), so please have a thorough code review.

[1]: http://mail.python.org/pipermail/cython-devel/2013-March/003481.html