Cast matrices passed to c-code into arrays, in order to make code compatible with Python 2.6.