added cython dynamic stack arrays issue comment
added explicit int type cast for spmat