Support read-only numpy array.
Merge pull request #427 from MarcCote/fix_streamlinespeed

Support read-only numpy array.