Always call hashlib.md5 on a C-contiguous array

This should solve the problem discussed at https://github.com/pymc-devs/pymc/issues/327 and https://groups.google.com/d/topic/theano-users/Gq8v1nedx98/discussion